// Start is called before the first frame update void Start() { Moraleo = this.transform.parent.GetComponentInChildren <MoraleController>(); Hungero = this.transform.parent.GetComponentInChildren <HungerController>(); Moraleo.UpdateValue(MoraleEdit); Hungero.UpdateValue(ResourcesEdit); }
public void updateHunger(float val) { hunger.UpdateValue(val); buttonPray.SetActive(false); buttonTalk.SetActive(false); buttonFeast.SetActive(false); buttonNextLevel.SetActive(true); }