Ejemplo n.º 1
0
 void OnTriggerExit(Collider other)
 {
     if (other.gameObject.tag == "Stops")
     {
         if (gunnerScript != null)
         {
             gunnerScript.isCurrentlyHere = false;
             gunnerScript = null;
         }
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Stops")
     {
         gunnerScript = other.gameObject.GetComponent <AddGunnerSpawn> ();
         if (gunnerScript != null)
         {
             gunnerScript.isCurrentlyHere = true;
         }
     }
 }