public static void RegisterLobbyHeartMessageHandler() { NetworkManager.RegisterServerMessageHandler(MsgCode.PingLobbyMessage, HandlePingLobbyFeedback); }
public static void RegisterSocialHeartMessageHandler() { NetworkManager.RegisterServerMessageHandler(ServerType.SocialServer, MsgCode.PingSocialServer, HandlePingSocialFeedback); connectSocialServer = true; }
public static void RegisterGameHeartMessageHandler() { NetworkManager.RegisterServerMessageHandler(MsgCode.PingGameMessage, HandlePingGameFeedback); NetworkManager.RegisterServerMessageHandler(MsgCode.ReconnectGameMessage, HandleReconnectGameServerFeedback); }