Beispiel #1
0
 /// <summary>
 /// OnTriggerExit is called when the Collider other has stopped touching the trigger.
 /// </summary>
 /// <param name="other">The other Collider involved in this collision.</param>
 void OnTriggerExit(Collider other)
 {
     if (other.gameObject.name.Equals("Player"))
     {
         //this.SendMessageUpwards("OnPlayerNearExit");
         Stackable parent = GetParentStackable();
         parent.OnPlayerNearExit();
     }
 }