public void Init() { if (IsInit == true) { return; } IsInit = true; ObscuredPrefs.preservePlayerPrefs = true; game_server.InitServer(SHSavedData.AccountIdx, server_uri, "C2L", OnError); game_server.AddCommonHandler <NetworkCore.PacketError>(OnPacketError); game_server.AddPreHandler <C2G.DailyIndex>(OnDailyIndex); game_server.AddPreHandler <C2G.ReconnectInfo>(OnReconnectInfo); game_server.AddPostHandler <C2G.QuestProgress>(OnQuestProgress); game_server.AddPostHandler <C2G.UnreadMail>(OnUnreadMail); game_server.AddPostHandler <C2G.NotifyMenu>(OnNotifyMenu); game_server.PostCallback = Networking.Instance.OnPostCallback; NotifyMenu = new C2G.NotifyMenu(); ResetConnectingState(); }
void OnNotifyMenu(CS_Client server, HTTPRequest request, object send_packet, C2G.NotifyMenu packet) { NotifyMenu = packet; }