Files
tysdk-intergration/sdk-intergration/Packages/tysdk/Runtime/TYSdkFacade_Max.cs
2024-08-06 16:22:00 +08:00

36 lines
1.1 KiB
C#

// using System;
// using AppLovinMax;
// using UnityEngine;
//
// namespace tysdk
// {
// public partial class TYSdkFacade : MonoBehaviour
// {
// #if UNITY_IOS
// public const string AppOpenAdUnitId = "4cea568d96f9c9d3";
// #else
// public const string AppOpenAdUnitId = "4cea568d96f9c9d3";
// #endif
// public string[] TestIds = new string[] { "4cea568d96f9c9d3","cd71530d3089c3ec","1a2e78ad8aa5690f"};
// public int adIndex = 0;
// public async void PlayAd()
// {
// await AppMaxManager.Instance().MaxInit();
// if (adIndex >= TestIds.Length - 1)
// {
// adIndex = 0;
// }
//
// adIndex++;
// Debug.LogError("广告id::::::::" + TestIds[adIndex]);
// if (MaxSdk.IsRewardedAdReady(TestIds[adIndex]))
// {
// MaxSdk.ShowRewardedAd(TestIds[adIndex]);
// }
// else
// {
// MaxSdk.LoadRewardedAd(TestIds[adIndex]);
// }
// }
// }
// }