void Start() { countDown = timeToSelect; adsTextCanvas.GetComponent <Canvas> ().enabled = false; this.hitAds = null; adsHandler = this.GetComponent <AdsHandler> (); }
void Awake() { if (Instance == null) { Instance = this; } RequestBannerMenuPage(); RequestVideoAds(); //RequestRewardedVideoAds (); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
void Start() { if (!instance) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
// 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; }
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; }
void Start() { countDown = timeToSelect; this.hitButton = null; adsHandler = this.GetComponent <AdsHandler> (); }