void Start() { mas = GetComponent <MovementAudioSource>(); has = GetComponent <HitAudioSource>(); sas = GetComponent <SwingAudioSource>(); died = false; eh = this.GetComponent <BrigandHealth>(); ea = this.GetComponent <BrigandArmour>(); es = this.GetComponent <EnemySkill>(); StartCoroutine(SetSpeedBoost()); StartCoroutine(SetAttackDistance()); StartCoroutine(SetPersonSize()); defensed = false; isAttacked = false; rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); // InvokeRepeating("FindPlayer", 0, 1); }
void Start() { has = enemy.GetComponent <HitAudioSource>(); damaged_shield = false; damaged = false; es = enemy.GetComponent <EnemySkill>(); ea = enemy.GetComponent <BrigandArmour>(); infCtrl = enemy.GetComponent <BrigandController>(); }
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; }