コード例 #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);
 }