private Kimboko GetNewKimboko(SpawnAbilityEventInfo spawnInfo) { Kimboko kimboko = null; switch (spawnInfo.spawnUnitType) { case UNITTYPE.X: KimbokoXFactory kimbokoXFac = new KimbokoXFactory(); kimboko = kimbokoXFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer); break; case UNITTYPE.Y: KimbokoYFactory kimbokoYFac = new KimbokoYFactory(); kimboko = kimbokoYFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer); break; case UNITTYPE.Z: KimbokoZFactory kimbokoZFac = new KimbokoZFactory(); kimboko = kimbokoZFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer); break; case UNITTYPE.COMBINE: break; case UNITTYPE.FUSION: break; default: break; } return(kimboko); }
public ISpawnCommand(SpawnAbilityEventInfo spawnInfo, GameObject kimbokoGO, IGame game) { logInsert = true; this.spawnInfo = spawnInfo; this.kimbokoGO = kimbokoGO; this.game = game; }
public ISpawnCombineCommand(Kimboko spawnedKimboko, SpawnAbilityEventInfo spawnInfo, Kimboko combiner, IGame game) { logInsert = true; this.combiner = combiner; this.game = game; this.spawnInfo = spawnInfo; this.spawnedKimboko = spawnedKimboko; }