예제 #1
0
        public void Join(string username, int width,int height, bool isPaddle)
        {
            if (Game == null || Game.View.Status == GameStatus.Finished)
            {
                Game = new Game();
            }

            Game.Join(Context.ConnectionId, username, isPaddle, width, height);
        }
예제 #2
0
 public static void StartGame()
 {
     var game = new Game();
     Games.Add(game);
 }