void Awake()
 {
     attackType    = cardInfo.attackType;
     health        = cardInfo.health;
     attack_Damage = cardInfo.attack_Damage;
     attack_Range  = cardInfo.attack_Range;
     attack_Speed  = cardInfo.attack_Speed;
     agro_Range    = cardInfo.agro_Range;
 }
Beispiel #2
0
 void Start()
 {
     troopHealth      = GetComponent <TroopHealth>();
     troopPathFinding = GetComponent <TroopPathFinding>();
     attackTarget     = troopPathFinding.GetAttackTarget();
     troop_Info       = GetComponent <troopInfo>();
     attackType       = troop_Info.GetAttackType();
     attack_Range     = troop_Info.GetAttackRange();
     attack_Damage    = troop_Info.GetAttackDamage();
     health           = troop_Info.GetHealth();
 }