Beispiel #1
0
        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();
        }
Beispiel #2
0
 private void Go()
 {
     _network.Start();
     _scenario.Start();
     while (true)
     {
         Thread.Sleep(100);
         if (_isExit)
         {
             break;
         }
     }
     Close();
 }