Example #1
0
 void Start()
 {
     has            = enemy.GetComponent <HitAudioSource>();
     es             = enemy.GetComponent <EnemySkill>();
     aa             = enemy.GetComponent <ArcherArmour>();
     damaged_shield = false;
     damaged        = false;
     arCtrl         = enemy.GetComponent <ArcherController>();
 }
Example #2
0
    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;
    }
Example #3
0
    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;
    }