void Start() { ladder = GetComponentInParent <Ladder>(); ladderBC = ladder.GetComponent <BoxCollider2D>(); }
private void Start() { spriteRenderers = GetComponentsInChildren <SpriteRenderer>(); ladder = GetComponent <Ladder>(); }