Beispiel #1
0
        private void GameExit()
        {
            SetGameOverStatus(true);

            SendGameOverMessageToAllPlayers();
            var evt = RoomEvent.AllocEvent <GameExitEvent>();

            _eventDispatcher.AddEvent(evt);
        }
Beispiel #2
0
        private void GameExit(RoomState state)
        {
            SetGameOverStatus(true);

            if (!isGameExit)
            {
                SendGameOverMessageToAllPlayers();
                var evt = RoomEvent.AllocEvent <GameExitEvent>();
                eventDispatcher.AddEvent(evt);
                isGameExit = true;
            }
        }