Esempio n. 1
0
    private void Start()
    {
        hungerController = HungerController.instance;

        maxValue          = hungerController.maxHunger;
        value             = (int)hungerController.hunger;
        debuffsController = DebuffsController.instance;
        hungerDebuff      = debuffsController.transform.Find("Hunger").gameObject;
        hungerDebuff.SetActive(false);
    }
Esempio n. 2
0
 private void Awake()
 {
     if (!instance)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }