示例#1
0
 void Start()
 {
     ladder   = GetComponentInParent <Ladder>();
     ladderBC = ladder.GetComponent <BoxCollider2D>();
 }
示例#2
0
 private void Start()
 {
     spriteRenderers = GetComponentsInChildren <SpriteRenderer>();
     ladder          = GetComponent <Ladder>();
 }