Exemplo n.º 1
0
 /// <summary>
 /// OnTriggerEnter is called when the Collider other enters the trigger.
 /// </summary>
 /// <param name="other">The other Collider involved in this collision.</param>
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.name.Equals("Player"))
     {
         //this.SendMessageUpwards("OnPlayerNearEnter");
         Stackable parent = GetParentStackable();
         parent.OnPlayerNearEnter();
     }
 }