示例#1
0
        public static string GetParameterJson()
        {
#if UNITY_WEBGL && !UNITY_EDITOR
            return(JSLib.GetParams());
#endif
            return("");
        }
示例#2
0
        private static void Redirect(string url)
        {
            var preferences = JsonUtility.ToJson(PlatformPreferences.Current);

#if UNITY_WEBGL && !UNITY_EDITOR
            if (preferences != "{}")
            {
                JSLib.RedirectWithParams(Config.BASE_URL + url + "/", preferences);
            }
            else
            {
                JSLib.Redirect(Config.BASE_URL + url + "/");
            }
#endif
            Debug.LogWarning($"Should open an encoded version of {Config.BASE_URL + url + "/?" + JsonUtility.ToJson(PlatformPreferences.Current)} now");
        }