private void Start() { anim = GetComponent <Animator>(); moveCtrl = GetComponentInParent <MoveMentController>(); collision = GetComponentInParent <CollisionMgr>(); render = GetComponent <SpriteRenderer>(); }
void Start() { rigid = GetComponent <Rigidbody2D>(); anim = GetComponentInChildren <AnimationMgr>(); collision = GetComponent <CollisionMgr>(); }