Files
RedHotRoast-ios/Assets/Scripts/GemCrushRoot.cs
T
2026-04-22 09:52:55 +08:00

32 lines
939 B
C#

using FlowerPower;
using UnityEngine;
public class GemCrushRoot : MonoBehaviour
{
public void Awake()
{
#if UNITY_EDITOR || FlowerPowerRelease
GameObject.Find("IngameDebugConsole").SetActive(false);
#endif
MaxADKit.Init();
OnLauncher();
var reqData = new RespLoginFunnelData
{
type = "bootstrap",
payload = ""
};
NetworkKit.PostFunnelLogin(reqData);
}
public static void OnLauncher()
{
AppObjConst.FrameGo = new GameObject($"{AppObjConst.FrameGoName}");
AppObjConst.FrameGo.AddComponent<GemCrushCore>();
DontDestroyOnLoad(AppObjConst.FrameGo);
App.InitApplication(SuperApplication.Instance);
MarkdownTextManager.Instance.LoadText("privacy", "https://www.flowerlazypower.fun//privacy.md");
MarkdownTextManager.Instance.LoadText("user", "https://www.flowerlazypower.fun//user.md");
}
}