Ejemplo n.º 1
0
 public Blueprint_Battle(int ammo, float reload_time, float rate, float damage, float hp, float attk, float defense, float shield)
 {
     battleStats = new TowerGunStats(ammo, reload_time);
     unitStats = new UnitStats();
     unitStats.InitStartingStats(hp, defense, attk, shield, rate, damage, 0);
     unitStats.Init();
     tileStats = new TileStats(hp, defense, attk, shield, nanoBotCost);
 }
 //void InitGunStats(TowerGunStats towerStats)
 //{
 //    gunStats = new TowerGunStats(towerStats.startingAmmo, towerStats.startingReloadTime);
 //}
 void InitTowerStats(UnitStats unitStats)
 {
     stats = new UnitStats();
     stats.InitStartingStats(unitStats.maxHP, unitStats.startDefence, unitStats.startAttack, unitStats.startShield, unitStats.startRate, unitStats.startDamage, 0);
 }