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