Esempio n. 1
0
File: Player.cs Progetto: harjup/Xyz
 void OnTriggerEnter(Collider other)
 {
     other.GetComponentInParentAndExecuteIfExists<Beacon>(OnBeaconEnter);
     other.GetComponentAndExecuteIfExists<StadiumActiveArea>(OnStadiumActiveEnter);
     other.GetComponentInParentAndExecuteIfExists<Doorway>(OnDoorwayEnter);
     other.GetComponentInParentAndExecuteIfExists<Pusher>(OnPusherEnter);
 }