예제 #1
0
 public GameHost(BotDifficult difficult, GameObject container) //Offline mode
 {
     ContainerPrefab = container;
     _botDifficult   = difficult;
     _player         = new Online.Player("Local player", 1, true);
     Initialize(GameType.Offline);
 }
예제 #2
0
 public GameHost(Room room, Online.Player player, GameObject container) //TODO: Mark room as closed (send request to the server); //Online mode
 {
     ContainerPrefab = container;
     _room           = room;
     _player         = player;
     Initialize(GameType.Online);
 }
예제 #3
0
 public void SetOnlineHost(Room room, Online.Player player)
 {
     var gamehost = new GameHost(room, player, GameContainerPrefab);
 }