Ejemplo n.º 1
0
        protected void OnDisable()
        {
            if (!isInitialized)
            {
                return;
            }
            if (instance != this)
            {
                return;
            }

            instance = null;

            isInitialized = false;

            handlers.Clear();

            UDPTransport.Shutdown();

            isRunning = false;
            Debug.Log("Server Shutdown");
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Called when the manager unloads all the modules.
 /// </summary>
 /// <param name="manager"></param>
 public virtual void Unload(UDPServer server)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Called by master server when module should be started
 /// </summary>
 /// <param name="manager"></param>
 public virtual void Initialize(UDPServer server)
 {
 }
Ejemplo n.º 4
0
 private static void NetworkLateUpdate()
 {
     //Debug.Log("NetworkLateUpdate @ " + Time.time);
     UDPServer.NetworkLateUpdate();
     UDPClient.NetworkLateUpdate();
 }