Пример #1
0
        private static void UnityEditorLogout()
        {
#if GCLOUD_MSDK_WINDOWS
#else
            string retJson = UnityEditorData.GetLogoutData();
            if (!string.IsNullOrEmpty(retJson))
            {
                MSDKMessageCenter.OnMSDKRet((int)MSDKMethodNameID.MSDK_LOGIN_LOGOUT, retJson);
            }
            else
            {
                MSDKLog.Log("Simulator Logout data is empty.");
            }
#endif
        }
Пример #2
0
        private static void UnityEditorConnect(MSDKMethodNameID methodId, string channel = "", string subChannel = "")
        {
#if GCLOUD_MSDK_WINDOWS
#else
            string retJson = UnityEditorData.GetLoginData((int)methodId, channel, subChannel);
            if (!string.IsNullOrEmpty(retJson))
            {
                MSDKMessageCenter.OnMSDKRet((int)methodId, retJson);
            }
            else
            {
                MSDKLog.Log("Simulator data is empty. channel=" + channel);
            }
#endif
        }