在庫メーター修正
This commit is contained in:
parent
22b32e318b
commit
027385ee22
|
|
@ -9,6 +9,11 @@ public class ShopStockView : MonoBehaviour
|
||||||
[SerializeField] private float minPosision = -0.8f;
|
[SerializeField] private float minPosision = -0.8f;
|
||||||
[SerializeField] private GameObject textObject;
|
[SerializeField] private GameObject textObject;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
textObject.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
public void SetStock(List<StorageTank> tanks)
|
public void SetStock(List<StorageTank> tanks)
|
||||||
{
|
{
|
||||||
var totalCapacity = tanks.Sum(x => x.Capacity);
|
var totalCapacity = tanks.Sum(x => x.Capacity);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue