예제 #1
0
 // Update is called once per frame
 void Update()
 {
     //if the players sanity is less than 45 and the event generatoor selected the crazy tree edvent
     if (sanity.getSanity() <= 45 && sanity.getSelector() == 4)
     {
         //turn off the render of the trees
         setOff();
     }
 }
 // Update is called once per frame
 void Update()
 {
     //if the players sanity is less that 45 and event selects the halucinating roads
     if (sanity.getSanity() <= 45 && sanity.getSelector() == 4)
     {
         //turn on the renderers of the roads
         setOn();
     }
 }