void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player")) { activateUpper = true; } LowerLadder.UpdateIfNeed(); //Debug.Log("Upper active"); }
void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { activateMiddle = false; } LowerLadder.UpdateIfNeed(); //Debug.Log("Middle unactive"); }