示例#1
0
 /*
  * This trigger function sets hiding to true once the player is within a bush and
  * sends the information to the logicScript
  */
 void OnTriggerStay(Collider other)
 {
     if (other.tag == "Player")
     {
         hiding = true;
         logicScript.set_hide(hiding);
     }
     Debug.Log("Player has entered the bush... incognito mode on");
 }