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