每日自动提交 2026-04-17 18:30

This commit is contained in:
2026-04-17 18:30:51 +08:00
parent a4a716b742
commit b97865574f
520 changed files with 33845 additions and 4757 deletions
+18 -2
View File
@@ -5,6 +5,7 @@ using Newtonsoft.Json;
using System;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
public class GameManager : MonoSingleton<GameManager>
@@ -14,7 +15,22 @@ public class GameManager : MonoSingleton<GameManager>
public GameData gameData = new GameData();
public Scene scene;
public CameraShaker cameraShake;
// // 指定此方法在加载时立即调用,在显示启动动画前之前执行
// [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
// private static void BeforeSplashScreen()
// {
// //平台适配
//#if UNITY_WEBGL
// // 如果在 WebGL 平台上运行,立即停止启动动画
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
//#else
// // 如果不是在 WebGL 平台上,启动一个异步任务来停止启动动画
// System.Threading.Tasks.Task.Run(() =>
// {
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
// });
//#endif
// }
public void UpdataUserData(UserData user)
{
this.user = user;
@@ -83,7 +99,7 @@ public class GameManager : MonoSingleton<GameManager>
// Start is called before the first frame update
void Start()
{
UIManager.Instance.ShowAsync(UIPanel.LoginPanel);
UIManager.Instance.ShowAsync(UIPanel.LoginPanel,null,null,30);
}
// Update is called once per frame