public static void login(NCommon.LoginType loginType) { #if UNITY_EDITOR { GamePotEventListener listener = GamePotEventListener.s_instance; if (loginType == NCommon.LoginType.GUEST) { Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK login with GUEST. It does not communicate with server."); // Temporary user info for UnityEditor Development mode if (listener != null) { NUserInfo userInfo = new NUserInfo { memberid = "UE-" + SystemInfo.deviceUniqueIdentifier, userid = "UE-" + SystemInfo.deviceUniqueIdentifier, name = "UnityEditor", token = "UnityEditorTempToken" }; GamePotSettings.MemberInfo = userInfo; listener.onLoginSuccess(userInfo.ToJson()); } else { Debug.LogError("GamePot UnityEditor listener is NULL"); } } else { Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK login cancelled"); listener.onLoginCancel(); } } #elif UNITY_IOS GamePotUnityPluginiOS.login(loginType); #elif UNITY_ANDROID GamePotUnityPluginAOS.login(loginType); #endif }