Ejemplo n.º 1
0
    public void SetTroopStats()
    {
        TroopScript ts = troop.GetComponent <TroopScript>();

        txt_level.text       = "Level: " + ts.GetLevel();
        txt_damage.text      = "Damage: " + ts.GetDamage();
        txt_cooldown.text    = "Cooldown: " + ts.GetShootCooldown();
        txt_view_radius.text = "View Radius: " + ts.GetViewRadius();
        txt_upgradecost.text = "Upgrade $" + ts.GetUpgradeCost();
    }