Exemple #1
0
 void OnTriggerExit(Collider other)
 {
     other.GetComponentInParentAndExecuteIfExists<Beacon>(OnBeaconExit);
 }
Exemple #2
0
 void OnTriggerEnter(Collider other)
 {
     other.GetComponentInParentAndExecuteIfExists<Beacon>(OnBeaconEnter);
     other.GetComponentAndExecuteIfExists<StadiumActiveArea>(OnStadiumActiveEnter);
     other.GetComponentInParentAndExecuteIfExists<Doorway>(OnDoorwayEnter);
     other.GetComponentInParentAndExecuteIfExists<Pusher>(OnPusherEnter);
 }