Esempio n. 1
0
 void OnTriggerExit(Collider other)
 {
     validSquad = null;
 }
Esempio n. 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "VampirePlayer" || other.tag == "ZombiePlayer")
     {
        validSquad = other.GetComponent<SquadMovement>();
         Node newTarget = sendNextNode(validSquad.ChangeDirection());
        validSquad.changeTarget(newTarget);
        Debug.Log((int)validSquad.dir);
     }
 }