Beispiel #1
0
 private void SetRefrences()
 {
     animCon                  = this.GetComponent <Animator>();
     polyCon                  = this.GetComponent <PolygonCollider2D>();
     characterStats           = this.GetComponentInParent <Character_Stats>();
     aIAnimCon                = this.GetComponentInParent <AI_Animator_Controller>();
     aIAnimCon.callingAttack += Standard_Attack;
 }
Beispiel #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>();
 }