Example #1
0
 void Awake()
 {
     AdChecker = false;
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     HeyzapAds.Start(HeyZapPublisherID, HeyzapAds.FLAG_NO_OPTIONS);
 }
 void Awake()
 {
     AdChecker = false;
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     menuConrtoller = GameObject.Find("EventSystem").GetComponent <MenuController> ();
     HeyzapAds.Start(HeyZapPublisherID, HeyzapAds.FLAG_NO_OPTIONS);
 }