Exemple #1
0
        private void UpdateDatabyKillType(MyStatistic.KillData data, MyStatistic.UnitType attackerType, Units attacker)
        {
            switch (attackerType)
            {
            case MyStatistic.UnitType.Monster:
                data.byMonster++;
                break;

            case MyStatistic.UnitType.Hero:
                data.byHero++;
                data.AddHeroRecord(attacker.unique_id);
                break;

            case MyStatistic.UnitType.Tower:
                data.byTower++;
                break;
            }
        }
Exemple #2
0
 public MyStatisticData()
 {
     this.heroKill    = new MyStatistic.KillData();
     this.monsterKill = new MyStatistic.KillData();
     this.towerKill   = new MyStatistic.KillData();
 }