Exemplo n.º 1
0
 void OnTriggerStay2D(Collider2D other)
 {
     if (!other.CompareTag("Player"))
     {
         return;
     }
     PlatformBehaviour.SetPlatformTrigger(true);
     allowClimb = true;
 }
Exemplo n.º 2
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (!other.CompareTag("Player"))
     {
         return;
     }
     PlatformBehaviour.SetPlatformTrigger(false);
     allowClimb = false;
 }