Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         activateUpper = true;
     }
     LowerLadder.UpdateIfNeed();
     //Debug.Log("Upper active");
 }
Пример #2
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         activateMiddle = false;
     }
     LowerLadder.UpdateIfNeed();
     //Debug.Log("Middle unactive");
 }