//private void OnGUI() //{ // Color c = GUI.color; // if( GUI.Button( new Rect( Screen.width / 2 - 150, 0, 300, 120 ), "Banner Goster" ) ) // ReklamScript.BannerGoster(); // if( GUI.Button( new Rect( Screen.width / 2 - 150, 120, 300, 120 ), "Banner Gizle" ) ) // ReklamScript.BannerGizle(); // GUI.color = InterstitialHazirMi() ? Color.green : Color.red; // if( GUI.Button( new Rect( Screen.width / 2 - 150, 240, 300, 120 ), "Interstitial Goster" ) ) // ReklamScript.InsterstitialGoster(); // GUI.color = RewardedReklamHazirMi() ? Color.green : Color.red; // if( GUI.Button( new Rect( Screen.width / 2 - 150, 360, 300, 120 ), "Rewarded Goster" ) ) // ReklamScript.RewardedReklamGoster( null ); // GUI.color = c; //} public static void BannerReklamAl() { if (instance == null) { return; } instance.BannerReklamYukle(); }
/*void OnGUI() * { * Color c = GUI.color; * * if( GUI.Button( new Rect( Screen.width / 2 - 150, 0, 300, 120 ), "Banner Goster" ) ) * ReklamScript.BannerGoster(); * * if( GUI.Button( new Rect( Screen.width / 2 - 150, 120, 300, 120 ), "Banner Gizle" ) ) * ReklamScript.BannerGizle(); * * GUI.color = InterstitialHazirMi() ? Color.green : Color.red; * if( GUI.Button( new Rect( Screen.width / 2 - 150, 240, 300, 120 ), "Interstitial Goster" ) ) * ReklamScript.InsterstitialGoster(); * * GUI.color = RewardedReklamHazirMi() ? Color.green : Color.red; * if( GUI.Button( new Rect( Screen.width / 2 - 150, 360, 300, 120 ), "Rewarded Goster" ) ) * ReklamScript.RewardedReklamGoster( null ); * * GUI.color = c; * }*/ public static void BannerGoster() { if (instance == null) { return; } if (instance.bannerReklam == null) { instance.BannerReklamYukle(); } instance.bannerReklam.Show(); }