void OnGUI() { rect.x = 20; rect.y = 40; rect.width = Screen.width * 0.3f; rect.height = Screen.height * 0.1f; // Make the Enable Button if (GUI.Button(rect, "Enable")) { AdvertisementHandler.EnableAds(); } rect.y = rect.y + rect.height; if (GUI.Button(rect, "Disable")) { AdvertisementHandler.DisableAds(); } rect.y = rect.y + rect.height; // Make the Hide Button if (GUI.Button(rect, "Hide")) { AdvertisementHandler.HideAds(); } rect.y = rect.y + rect.height; // Make the Show button. if (GUI.Button(rect, "Show")) { AdvertisementHandler.ShowAds(); } }
void Start() { LevelDone = 0; textuerMover = 0; StartCoroutine(ProgressBar(0)); orignalWidth = Screen.width; orignalHeight = Screen.height; AdvertisementHandler.EnableAds(); AdvertisementHandler.ShowAds(); }