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); }
private void Awake() { if (!instance) { instance = this; } else if (instance != this) { Destroy(gameObject); } }