コード例 #1
0
 void OnTriggerStay2D(Collider2D other)
 {
     if (!other.CompareTag("Player"))
     {
         return;
     }
     PlatformBehaviour.SetPlatformTrigger(true);
     allowClimb = true;
 }
コード例 #2
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (!other.CompareTag("Player"))
     {
         return;
     }
     PlatformBehaviour.SetPlatformTrigger(false);
     allowClimb = false;
 }