Пример #1
0
        static void Main(string[] args)
        {
            // Create the instance
            NetworkGame game = new NetworkGame();

            Debug.Assert(game != null);

            // Start the game
            game.Run();
        }
Пример #2
0
        static void Main(string[] args)
        {
            // Create the instance
            NetworkGame game = new NetworkGame();

            Debug.Assert(game != null);

            Console.WriteLine("Enter Server IP address:");

            MyClient.Instance.SetIPAddress(Console.ReadLine());

            // Start the game
            game.Run();
        }