public GameSession Initialization() { _gameSession = _gameServer.Initialization(); Logger.Info($"[{GetType().Name}]\t Initialization finished successful."); Scheduler.Instance.ScheduleTask(100, 100, GetDataFromServer, null); return(_gameSession); }
public void StartNewGameSession(string scenario) { var _gameSession = _gameServer.Initialization(scenario); Environment.RefreshGameSession(_gameSession); UiManager.UiInitialization(); OnStartGameSession?.Invoke(Environment); Scheduler.Instance.ScheduleTask(50, 50, GetDataFromServer, null); }