Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
@@ -0,0 +1,33 @@
#if UNITY_WEBGL|| WEIXINMINIGAME || UNITY_EDITOR
using System;
using UnityEngine;
using WeChatWASM;
internal class CheckFrame : MonoBehaviour
{
private int frameCnt = 0;
public void Update()
{
frameCnt++;
if (frameCnt == 2)
{
#if (UNITY_WEBGL|| WEIXINMINIGAME) && !UNITY_EDITOR
WXSDKManagerHandler.Instance.HideLoadingPage();
#endif
Destroy(this);
}
}
}
internal class HideLoadingPage : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void OnGameLaunch()
{
var gameObject = new GameObject("HideLoadingPage");
gameObject.AddComponent<CheckFrame>();
DontDestroyOnLoad(gameObject);
}
}
#endif