Last active
June 26, 2017 19:54
-
-
Save wcoastsands/86e0c69ee55adb564de7241beaa2a065 to your computer and use it in GitHub Desktop.
Disable IAP Updater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
namespace UnityEngine.Purchasing | |
{ | |
public class DisableUpdateNotice | |
{ | |
[MenuItem("Window/Unity IAP/Ignore Updates (30 days)", false, 0)] | |
static void DoDisableUpdateNotice() | |
{ | |
PlayerPrefs.SetString("PackageUpdaterLastChecked68207", System.DateTime.UtcNow.AddDays(30).ToString()); | |
PlayerPrefs.Save(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment