public void Start() { _isExit = false; _messagesManager = new MessagesManager(); _network = new NetworkClientMachine(_messagesManager); IAllParameters p = new AllGameOneParameters(this, SceneMenu, SceneGame, _messagesManager); _scenario = new ScenarioMachine(p); _network.Start(); _scenario.Start(); }
private void Go() { _network.Start(); _scenario.Start(); while (true) { Thread.Sleep(100); if (_isExit) { break; } } Close(); }