Example #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>();
 }
Example #2
0
 private void SetRefrences()
 {
     rb             = this.GetComponent <Rigidbody2D>();
     characterStats = this.GetComponent <Character_Stats>();
     aIBrain        = this.GetComponent <AI_Brain>();
 }