예제 #1
0
 private void Start()
 {
     if (IAPController.Exists())
     {
         // Setup IAP product purchased event callback
         IAPController.Instance.OnProductPurchased += OnProductPurchased;
     }
 }
예제 #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
예제 #3
0
    public IAPController()
    {
        if (instance != null)
        {
            return;
        }

        instance = this;

        //if (storeController == null) {

        //   InitializePurchasing ();
        //}
    }
예제 #4
0
    void Start()
    {
        instance = this;
        Timer connectTimer = new Timer();

        connectTimer.SetTimer(GameController.connectionTimeout + 0.1f);
        StartCoroutine(connectTimer.ActionAfterTimer(() => {
            if (m_StoreController == null)
            {
                initializeAction = () => {
                    StartCoroutine(GameController.ActionAfterFewFramesCoroutine(3, () => {
                        LevelController.instance.CheckFullVersionGame();
                    }));
                };
                InitializePurchasing();
                //LevelController.instance.CheckFullVersionGame ();
            }
        }));


        StartCoroutine(GameController.ActionAfterFewFramesCoroutine(10, () => {
        }));
    }
예제 #5
0
 void Awake()
 {
     Instance = this;
 }