예제 #1
0
        /// <summary>
        /// Update server thread
        /// </summary>
        public static void UpdateServer()
        {
            bool server_close = (bool)close_server;

            // wait until exit recieved from other thread
            while (!server_close)
            {
                GameServiceManager.UpdateServices();

                // wait
                System.Threading.Thread.Sleep(1000 / 60);

                // update close status
                lock (close_server)
                {
                    server_close = (bool)close_server;
                }
            }
        }
 /// <summary>
 /// Unity Fixed Update
 /// </summary>
 void FixedUpdate()
 {
     // Update all game services
     GameServiceManager.UpdateServices();
 }