public void HandleTimedInput()
 {
     if (currentObj.tag == "minusheat")
     {
         StartCoroutine(LerpLow());
         isLowHeat = true;
         highHeatButton.setHighHeat(false);
         call = GameObject.Find("GameObject").GetComponent <LoadClassroom> ();
         if (call.getheatLevel() == "low")
         {
             getHeatReaction getHeatR = GameObject.Find("HeatReaction").GetComponent <getHeatReaction> ();
             getHeatR.callHeatReaction();
         }
         else
         {
             print(" It is wrong!");
         }
     }
 }
Esempio n. 2
0
 // Use this for initialization
 public void getHeat()
 {
     call = GameObject.Find("GameObject").GetComponent <LoadClassroom>();
     print("Heat Level is:" + call.getheatLevel());
 }