示例#1
0
文件: Player.cs 项目: harjup/Xyz
 void OnTriggerExit(Collider other)
 {
     other.GetComponentInParentAndExecuteIfExists<Beacon>(OnBeaconExit);
 }
示例#2
0
文件: Player.cs 项目: harjup/Xyz
 void OnTriggerEnter(Collider other)
 {
     other.GetComponentInParentAndExecuteIfExists<Beacon>(OnBeaconEnter);
     other.GetComponentAndExecuteIfExists<StadiumActiveArea>(OnStadiumActiveEnter);
     other.GetComponentInParentAndExecuteIfExists<Doorway>(OnDoorwayEnter);
     other.GetComponentInParentAndExecuteIfExists<Pusher>(OnPusherEnter);
 }