Пример #1
0
	void Awake() {
		if(instance!=null){
			Destroy(gameObject);
			return;
		}
		instance = this;
		DontDestroyOnLoad (gameObject);

		if (Advertisement.isSupported) {
			Advertisement.allowPrecache = true;
			Advertisement.Initialize ("131624473");
		} else {
			//Debug.Log("Platform not supported");
		}
	}
Пример #2
0
	void Awake() {
		if(instance!=null){
			Destroy(gameObject);
			return;
		}
		instance = this;
		DontDestroyOnLoad (gameObject);
		/*
		if (Advertisement.isSupported) {
			Advertisement.allowPrecache = true;
			Advertisement.Initialize ("131624473");
		} else {
			//Debug.Log("Platform not supported");
		}
		*/
	}