Exemplo n.º 1
0
 protected void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         MovePlayer mp = other.GetComponent <MovePlayer>();
         PlayerEnter();
         mp.ActionChanged(Action, ActionName, true);
     }
 }
Exemplo n.º 2
0
 protected void OnTriggerExit(Collider other)
 {
     if (other.tag == "Player")
     {
         MovePlayer mp = other.GetComponent <MovePlayer>();
         if (mp.CurrentAction == Action)
         {
             mp.ActionChanged(Action, null, false);
         }
     }
 }