void Start() { has = enemy.GetComponent <HitAudioSource>(); es = enemy.GetComponent <EnemySkill>(); aa = enemy.GetComponent <ArcherArmour>(); damaged_shield = false; damaged = false; arCtrl = enemy.GetComponent <ArcherController>(); }
void Start() { ac = this.GetComponent <ArcherController>(); es = this.GetComponent <EnemySkill>(); aa = this.GetComponent <ArcherArmour>(); total_health = totalStartHealth = startHealth + aa.GetBreastPlate() * breastPlatePower + aa.GetTozluk() * tozlukPower + aa.GetHelmet() * helmetPower + es.GetEnemyVigor() * healthAmountPerSkill; startScaleX = healthLoad.transform.localScale.x; }
void Start() { sas = GetComponent <SwingAudioSource>(); has = GetComponent <HitAudioSource>(); aa = GetComponent <ArcherArmour>(); es = GetComponent <EnemySkill>(); SetEmberLogic(); StartCoroutine(SetSpeedBoost()); rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); StartCoroutine(SetAttackDistance()); StartCoroutine(SetPersonSize()); speedX = speed; speedY = 0.57f * speed; }