Пример #1
0
 void Start()
 {
     countDown = timeToSelect;
     adsTextCanvas.GetComponent <Canvas> ().enabled = false;
     this.hitAds = null;
     adsHandler  = this.GetComponent <AdsHandler> ();
 }
Пример #2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     RequestBannerMenuPage();
     RequestVideoAds();
     //RequestRewardedVideoAds ();
 }
Пример #3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Пример #4
0
 void Start()
 {
     if (!instance)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #5
0
    // Start is called before the first frame update
    void Start()
    {
        if (Application.isEditor)
        {
            testMode = true;
        }
#if UNITY_ANDROID
        gameId = "3432596";
#elif UNITY_IOS
        gameId = "3432597";
#endif
        Advertisement.Initialize(gameId, testMode);
        Debug.Log("test mode: " + testMode);
        instance = this;
    }
Пример #6
0
    void Awake()
    {
        if (Application.isEditor)
        {
            testMode = true;
        }
#if UNITY_ANDROID
        gameId = "3431809";
#elif UNITY_IOS
        gameId = "3431808";
#endif
        Advertisement.Initialize(gameId, testMode);
        Debug.Log("test mode: " + testMode);

        Instance = this;
    }
Пример #7
0
 void Start()
 {
     countDown      = timeToSelect;
     this.hitButton = null;
     adsHandler     = this.GetComponent <AdsHandler> ();
 }