void Start() { ic = this.GetComponent <BrigandController>(); es = this.GetComponent <EnemySkill>(); ea = this.GetComponent <BrigandArmour>(); total_health = totalStartHealth = startHealth + ea.GetBreastPlate() * breastPlatePower + ea.GetTozluk() * tozlukPower + ea.GetHelmet() * helmetPower + es.GetEnemyVigor() * healthAmountPerSkill; startScaleX = healthLoad.transform.localScale.x; }
void Start() { ic = this.GetComponent <SpearmanController>(); es = this.GetComponent <EnemySkill>(); ea = this.GetComponent <SpearmanArmour>(); total_health = totalStartHealth = startHealth + ea.BreastPlate * breastPlatePower + ea.Tozluk * tozlukPower + ea.Helmet * helmetPower + es.GetEnemyVigor() * healthAmountPerSkill; startScaleX = healthLoad.transform.localScale.x; }
void Start() { ic = this.GetComponent <InfantryController>(); es = this.GetComponent <EnemySkill>(); ea = this.GetComponent <EnemyArmour>(); shieldBusted = false; total_health = totalStartHealth = startHealth + ea.GetBreastPlate() * breastPlatePower + ea.GetTozluk() * tozlukPower + ea.GetHelmet() * helmetPower + es.GetEnemyVigor() * healthAmountPerSkill; shield_health = totalStartShieldHealth = Utility.GetShieldHealth(ea.GetShield(), es.GetEnemyDefence(), startShield) / 2; startScaleX = healthLoad.transform.localScale.x; startScaleShieldX = shieldLoad.transform.localScale.x; }