public void StartGame(int playerId) { _playerId = playerId; _units.Add(SniperFactory.BuildUnit(Map.GetRandomStartingPosition(_playerId), this)); _units.Add(SoldierFactory.BuildUnit(Map.GetRandomStartingPosition(_playerId), this)); gameObject.SetActive(false); }
public void StartGame() { p1 = UnitFactory.BuildUnit(1, 100, 100, 0, 0); p1.Abilities.Add(new Ability() { Template = new AreaAffectTemplate(2), Icon = IconFactory.BuildFireballIcon() }); p2 = UnitFactory.BuildUnit(2, 150, 50, 5, 5); board.SpawnUnit(p1); board.SpawnUnit(p2); playerState = new UnselectedPlayerState(team); }