Exemplo n.º 1
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>();
 }
Exemplo n.º 2
0
 private void SetRefrences()
 {
     rb             = this.GetComponent <Rigidbody2D>();
     characterStats = this.GetComponent <Character_Stats>();
     aIMovement     = this.GetComponent <AI_Movement>();
 }
Exemplo n.º 3
0
 private void Start()
 {
     aIMovement = this.GetComponentInParent <AI_Movement>();
 }