예제 #1
0
 public void RecieveUnitEvent(MazeUnitEvent unitEvent)
 {
     if (MazeUnitEventOccured != null)
     {
         MazeUnitEventOccured(unitEvent);
     }
 }
예제 #2
0
        void OnTriggerExit(Collider c)
        {
            var evt = new MazeUnitEvent(MazeUnitEventType.Exiting, c, this);

            SendMessageUpwards("RecieveUnitEvent", evt, SendMessageOptions.DontRequireReceiver);
        }