バスケット内の残量対応
This commit is contained in:
parent
558d3f5e2c
commit
922d9b898d
|
|
@ -1012,7 +1012,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &8458098820248002959
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -1576,6 +1576,7 @@ GameObject:
|
|||
- component: {fileID: 7854448232971748899}
|
||||
- component: {fileID: 7854448232971748898}
|
||||
- component: {fileID: 7854448232971748956}
|
||||
- component: {fileID: 3285748382438269010}
|
||||
m_Layer: 0
|
||||
m_Name: Brother_pink
|
||||
m_TagString: Untagged
|
||||
|
|
@ -1633,6 +1634,22 @@ SortingGroup:
|
|||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 23
|
||||
--- !u!114 &3285748382438269010
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7854448232971748896}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: acf2a111dab748379c60a37b887bd20c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
itemMany: {fileID: 7527088936072372818}
|
||||
itemFew: {fileID: 3577262440827808746}
|
||||
manyCount: 8
|
||||
fewCount: 4
|
||||
--- !u!1 &7854448233088646087
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace MyGame.Scenes.marketing.Scripts
|
||||
{
|
||||
public class TastingBasketView : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject itemMany;
|
||||
[SerializeField] private GameObject itemFew;
|
||||
[SerializeField] private int manyCount;
|
||||
[SerializeField] private int fewCount;
|
||||
|
||||
public void SetItem(int count)
|
||||
{
|
||||
if (count >= manyCount)
|
||||
{
|
||||
itemMany.SetActive(true);
|
||||
itemFew.SetActive(false);
|
||||
}
|
||||
else if (count >= fewCount)
|
||||
{
|
||||
itemMany.SetActive(false);
|
||||
itemFew.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
itemMany.SetActive(false);
|
||||
itemFew.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: acf2a111dab748379c60a37b887bd20c
|
||||
timeCreated: 1639454549
|
||||
Loading…
Reference in New Issue