Exemplo n.º 1
0
    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;
    }