protected void OnDisable() { if (!isInitialized) { return; } if (instance != this) { return; } instance = null; isInitialized = false; handlers.Clear(); UDPTransport.Shutdown(); isRunning = false; Debug.Log("Server Shutdown"); }
/// <summary> /// Called when the manager unloads all the modules. /// </summary> /// <param name="manager"></param> public virtual void Unload(UDPServer server) { }
/// <summary> /// Called by master server when module should be started /// </summary> /// <param name="manager"></param> public virtual void Initialize(UDPServer server) { }
private static void NetworkLateUpdate() { //Debug.Log("NetworkLateUpdate @ " + Time.time); UDPServer.NetworkLateUpdate(); UDPClient.NetworkLateUpdate(); }