コード例 #1
0
    public CreatureTemplate(StatsSet set)
    {
        _name = set.getString("name");
        _resourceRelativePath = set.getString("relativeModelPath");

        _bounds.size = new Vector3(0, 0, 0);

        _assetSource = Resources.Load("Models/" + _resourceRelativePath);
    }
コード例 #2
0
ファイル: GameTower.cs プロジェクト: NadirRoGue/BugInvasion
    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;
    }
コード例 #3
0
ファイル: GameEnemy.cs プロジェクト: NadirRoGue/BugInvasion
    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"));
    }