Example #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        InAppManager inappManager = (InAppManager)target;

        if (GUILayout.Button("Long String Parsing"))
        {
            inappManager.LongStringParsing();
        }
    }
Example #2
0
    void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        else
        {
            instance = this;
            DontDestroyOnLoad(instance.gameObject);
//            InternetConnPopup.SetActive(false);
        }
    }
Example #3
0
    //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);
    }
Example #4
0
 private void Awake()
 {
     _currentScore = SaveDataStorage.LoadScore();
     _scoreViewer.ShowScore(_currentScore);
     _iAPMeneger = GetComponent <InAppManager>();
 }