Exemplo n.º 1
0
 public Upgrade(StatsSet set)
 {
     _price            = set.getInt("price");
     _attackBoost      = set.getFloat("attackBoost");
     _attackSpeedBoost = set.getFloat("speedBoost");
     _rangeBoost       = set.getFloat("rangeBoost");
     _healthBoost      = set.getFloat("healthBoost");
     _newAmmunition    = set.getObject("ammunition") as Ammunition;
     _graphicsUpgrade  = set.getObject("graphicsUpgrade") as Dictionary <int, Color>;
 }
Exemplo n.º 2
0
    public GameEnemy(StatsSet set)
        : base(set)
    {
        _health           = set.getFloat("health");
        _attackDmg        = set.getFloat("attackDamage");
        _attackRange      = set.getFloat("attackRange");
        _attackFreq       = set.getFloat("attackFrequency");
        _onKillCoinReward = set.getInt("killReward");

        _runtimeAnimationController = Resources.Load("Models/" + set.getString("animationController"));
    }
Exemplo n.º 3
0
    public GameTower(StatsSet set)
        : base(set)
    {
        _attackFrequency = set.getFloat("attackFrequency");
        _damagePerAttack = set.getFloat("attackDamage");
        _attackRange     = set.getFloat("attackRange");
        _health          = set.getFloat("health");
        _ammunition      = set.getObject("ammunition") as Ammunition;
        _coinPrice       = set.getInt("coinPrice");
        _attackPS        = set.getString("attackParticleSystem");
        _attackSound     = set.getString("attackSound");
        _repairCostPerPS = set.getFloat("repairCostPerPS");

        _fracturedAsset = Resources.Load("Models/" + set.getString("fracturedAssetPath"));
        _towerIconAsset = Resources.Load(set.getString("towerIcon"), typeof(Sprite)) as Sprite;
    }