private void Start() { weaponController = GetComponent <Weapon_Controller>(); cameraController = GetComponent <Camera_Controller>(); playerInput = GetComponent <Player_Input>(); m_Player = GetComponent <CharacterController>(); m_Anim = weaponController.ActiveWeaponAnimator; }
private void SetRefences() { aIAnimCon = this.GetComponent <AI_Animator_Controller>(); aIBrain = this.GetComponent <AI_Brain>(); attackHitBox = this.GetComponent <PolygonCollider2D>(); characterStats = this.GetComponent <Character_Stats>(); rb = this.GetComponent <Rigidbody2D>(); combatCon = this.GetComponentInChildren <AI_Combat_Controller>(); aIMovement = this.GetComponent <AI_Movement>(); wepCon = this.GetComponentInChildren <Weapon_Controller>(); }
private void SetRefrences() { characterStats = this.GetComponent <Character_Stats>(); weaponCon = this.GetComponentInChildren <Weapon_Controller>(); aIAnim = this.GetComponent <Animator>(); }