void Start() { has = enemy.GetComponent <HitAudioSource>(); damaged_shield = false; damaged = false; es = enemy.GetComponent <EnemySkill>(); ea = enemy.GetComponent <EnemyArmour>(); infCtrl = enemy.GetComponent <InfantryController>(); }
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; }
void Start() { sas = GetComponent <SwingAudioSource>(); has = GetComponent <HitAudioSource>(); died = false; eh = this.GetComponent <EnemyHealth>(); ea = this.GetComponent <EnemyArmour>(); es = this.GetComponent <EnemySkill>(); StartCoroutine(SetSpeedBoost()); StartCoroutine(SetAttackDistance()); StartCoroutine(SetPersonSize()); defensed = false; isAttacked = false; rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); }