예제 #1
0
    // 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);
    }
예제 #2
0
 public void updateHunger(float val)
 {
     hunger.UpdateValue(val);
     buttonPray.SetActive(false);
     buttonTalk.SetActive(false);
     buttonFeast.SetActive(false);
     buttonNextLevel.SetActive(true);
 }