private void GetAccessToComponents()
 {
     reddishCatHealthController       = GetComponent <ReddishCatHealthController>();
     reddishMinionAnimationController = GetComponentInChildren <ReddishCatAnimationController>();
     myRigidbody = GetComponent <Rigidbody2D>();
     gameMaster  = GameMaster.instance;
 }
Exemple #2
0
 private void GetAccessToComponents()
 {
     myRigidbody = GetComponent <Rigidbody2D>();
     myCollider  = GetComponent <Collider2D>();
     reddishCatAnimationController = GetComponentInChildren <ReddishCatAnimationController>();
     reddishCatHealthController    = GetComponent <ReddishCatHealthController>();
     reddishCatCombatController    = GetComponent <ReddishCatCombatController>();
 }