protected void OnDisable()
        {
            if (!isInitialized)
            {
                return;
            }
            if (instance != this)
            {
                return;
            }

            instance = null;

            isInitialized = false;

            handlers.Clear();

            UDPTransport.Shutdown();

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