Files
RedHotRoast-ios/Assets/Scripts/UnityManager.cs
T

43 lines
1.0 KiB
C#
Raw Normal View History

using SGModule.Common.Helper;
using RedHotRoast;
2026-04-22 09:52:55 +08:00
namespace IgnoreOPS
{
public class UnityManager : BaseUnityManager<UnityManager>
{
public static void DakaiACT()
2026-04-22 09:52:55 +08:00
{
#if UNITY_IOS && !UNITY_EDITOR
BrigdeIOS.DakaiACT();
#endif
}
public static void ShezhiACT(bool act)
{
2026-04-22 09:52:55 +08:00
#if UNITY_IOS && !UNITY_EDITOR
BrigdeIOS.ShezhiACT(act);
#endif
}
public void haveSimCard(string have)
{
Log.Info("UnityManager", $"haveSimCard: {have}");
2026-04-22 09:52:55 +08:00
if (have == "TRUE") NetworkManager.haveSimCard = true;
}
public void Showtips(string tips)
2026-04-22 09:52:55 +08:00
{
GameHelper.ShowTips(tips, true);
2026-04-22 09:52:55 +08:00
}
public void CloseDownloadUI(string tips)
2026-04-22 09:52:55 +08:00
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.AlbumDetailUI_Close);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.LiveDetailUI_Close);
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SecretDetailUI_Close);
2026-04-22 09:52:55 +08:00
}
}
}