Esempio n. 1
0
 private void Start()
 {
     weaponController = GetComponent <Weapon_Controller>();
     cameraController = GetComponent <Camera_Controller>();
     playerInput      = GetComponent <Player_Input>();
     m_Player         = GetComponent <CharacterController>();
     m_Anim           = weaponController.ActiveWeaponAnimator;
 }
Esempio n. 2
0
 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>();
 }
Esempio n. 3
0
 private void SetRefrences()
 {
     characterStats = this.GetComponent <Character_Stats>();
     weaponCon      = this.GetComponentInChildren <Weapon_Controller>();
     aIAnim         = this.GetComponent <Animator>();
 }