Exemple #1
0
 private void GetAccessToComponents()
 {
     myRigidbody = GetComponent <Rigidbody2D>();
     myCollider  = GetComponent <Collider2D>();
     reddishCatAnimationController = GetComponentInChildren <ReddishCatAnimationController>();
     reddishCatHealthController    = GetComponent <ReddishCatHealthController>();
     reddishCatCombatController    = GetComponent <ReddishCatCombatController>();
 }
Exemple #2
0
 private void GetAccessToComponents()
 {
     reddishCatMovementController = GetComponentInParent <ReddishCatMovementController>();
     reddishCatCombatController   = GetComponentInParent <ReddishCatCombatController>();
     myAnimator = GetComponent <Animator>();
 }