sdk 代码合并
This commit is contained in:
36
sdk-intergration/Packages/tysdk/Runtime/TYSdkFacade_Max.cs
Normal file
36
sdk-intergration/Packages/tysdk/Runtime/TYSdkFacade_Max.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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]);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user