在庫メーター修正

This commit is contained in:
kimura 2022-05-20 16:48:32 +09:00
parent 22b32e318b
commit 027385ee22
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ public class ShopStockView : MonoBehaviour
[SerializeField] private float minPosision = -0.8f;
[SerializeField] private GameObject textObject;
private void Awake()
{
textObject.SetActive(false);
}
public void SetStock(List<StorageTank> tanks)
{
var totalCapacity = tanks.Sum(x => x.Capacity);