void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     gAS = Camera.main.GetComponent <GoogleAdsScript> ();
 }
Beispiel #3
0
 void Start()
 {
     googleAds = GameObject.Find("AdsObj").GetComponent<GoogleAdsScript>();
     googleAds.RequestInterstitial();//Assumes that RequestInterstitial is now public
 }