private void OnDestroy() { if (Singleton == this) { CustomMessagingManager.UnregisterNamedMessageHandler("NetworkInput"); CustomMessagingManager.UnregisterNamedMessageHandler("NetworkState"); Singleton = null; } }
public void StopListening() { CustomMessagingManager.UnregisterNamedMessageHandler(MessageName); Debug.Log("Stopped Listening"); }
void OnDestroy() { CustomMessagingManager.UnregisterNamedMessageHandler(GameRoomMessagingHubConstants.SEND_SERVER_PROCESS_DOWN_COMMAND); CustomMessagingManager.UnregisterNamedMessageHandler(GameRoomMessagingHubConstants.SEND_SYSTEM_USERID_TO_SERVER); CustomMessagingManager.UnregisterNamedMessageHandler(GameRoomMessagingHubConstants.SEND_PLAYER_EJECTION_COMMAND); }
void StopListenForDownloadRequests() { CustomMessagingManager.UnregisterNamedMessageHandler("DownloadFilesRequest"); }