示例#1
0
 private static void ImportLatestEdEx()
 {
     PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-edex-upgrade", (fileName) =>
     {
         AssetDatabase.ImportPackage(fileName, false);
         Debug.Log("PlayFab EdEx Upgrade: Complete");
     });
 }
示例#2
0
 private static void ImportLatestEdEx()
 {
     PlayFabEditorHttp.MakeDownloadCall("https://aka.ms/PlayFabUnityEdEx", (fileName) =>
     {
         AssetDatabase.ImportPackage(fileName, false);
         Debug.Log("PlayFab EdEx Upgrade: Complete");
     });
 }
示例#3
0
        public static void ImportPubSubSDK()
        {
            var link = "https://api.playfab.com/downloads/unity-signalr";

            PlayFabEditorHttp.MakeDownloadCall(link, (fileName) =>
            {
                AssetDatabase.ImportPackage(fileName, false);
            });
        }
        public static void ImportLatestSDK()
        {
            PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-via-edex", (fileName) =>
            {
                Debug.Log("PlayFab SDK Install: Complete");
                AssetDatabase.ImportPackage(fileName, false);

                PlayFabEditorDataService.EnvDetails.sdkPath = PlayFabEditorHelper.DEFAULT_SDK_LOCATION;
                PlayFabEditorDataService.SaveEnvDetails();
            });
        }
示例#5
0
        public static void ImportLatestSDK()
        {
            PlayFabEditorHttp.MakeDownloadCall("https://aka.ms/PlayFabUnitySdk", (fileName) =>
            {
                Debug.Log("PlayFab SDK Install: Complete");
                AssetDatabase.ImportPackage(fileName, false);

                // attempts to re-import any changed assets (which ImportPackage doesn't implicitly do)
                AssetDatabase.Refresh();

                PlayFabEditorPrefsSO.Instance.SdkPath = PlayFabEditorHelper.DEFAULT_SDK_LOCATION;
                PlayFabEditorDataService.SaveEnvDetails();
            });
        }
示例#6
0
        public static void InstallEdExPackage(string key)
        {
            //TODO update this to work with a standardized key nomenclature

            if (EditorUtility.DisplayDialog("Confirm Package Installation", "This will install the " + key + " package.", "Confirm", "Cancel"))
            {
                PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/android-push50-via-edex", (fileName) =>
                {
                    AssetDatabase.ImportPackage(fileName, true);
                    Debug.Log(string.Format("EdEx: {0} Installation Complete", key));
                });
            }
            else
            {
                //TODO this will need to be updated when we have several plugins.
                AndroidPushPlugin = false;
                _androidPushPluginPreviousState = false;
            }
        }