예제 #1
0
 private void Start()
 {
     anim      = GetComponent <Animator>();
     moveCtrl  = GetComponentInParent <MoveMentController>();
     collision = GetComponentInParent <CollisionMgr>();
     render    = GetComponent <SpriteRenderer>();
 }
 void Start()
 {
     move = FindObjectOfType <MoveMentController>();
     anim = FindObjectOfType <AnimationMgr>();
 }