sdk 代码合并

This commit is contained in:
LYP
2024-08-06 16:22:00 +08:00
parent 4f80b73fd0
commit de5c781bd7
15 changed files with 1470 additions and 250 deletions

View 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]);
// }
// }
// }
// }