public override void OnInspectorGUI() { base.OnInspectorGUI(); InAppManager inappManager = (InAppManager)target; if (GUILayout.Button("Long String Parsing")) { inappManager.LongStringParsing(); } }
void Awake() { if (instance != null) { Destroy(gameObject); return; } else { instance = this; DontDestroyOnLoad(instance.gameObject); // InternetConnPopup.SetActive(false); } }
//const string SKU_AdRemove = "com.fss.removead"; private void Start() { instance = this; //OpenIAB.mapSku (SKU, OpenIAB_iOS.STORE, "fbss"); OpenIAB.mapSku(PluginManager._insta.inAppRemoveAdID, OpenIAB_iOS.STORE, PluginManager._insta.inAppRemoveAdID); OpenIAB.mapSku(PluginManager._insta.inAppRemoveAdID, OpenIAB_Android.STORE_GOOGLE, PluginManager._insta.inAppRemoveAdID); var options = new Options(); options.checkInventoryTimeoutMs = Options.INVENTORY_CHECK_TIMEOUT_MS * 2; options.discoveryTimeoutMs = Options.DISCOVER_TIMEOUT_MS * 2; options.checkInventory = false; options.verifyMode = OptionsVerifyMode.VERIFY_SKIP; options.storeKeys = new Dictionary <string, string> { { OpenIAB_Android.STORE_GOOGLE, PluginManager._insta.publicKeyAndroid } }; OpenIAB.init(options); }
private void Awake() { _currentScore = SaveDataStorage.LoadScore(); _scoreViewer.ShowScore(_currentScore); _iAPMeneger = GetComponent <InAppManager>(); }