代码合并

This commit is contained in:
MuHua-123
2024-11-08 18:15:06 +08:00
parent 5f169b90bb
commit 497b43a446
146 changed files with 2858 additions and 110 deletions
+3 -3
View File
@@ -5,9 +5,9 @@ using UnityEngine;
public abstract class ModuleScene : MonoBehaviour {
protected virtual ModuleCore ModuleCore => ModuleCore.I;
protected virtual void Awake() {
if (ModuleCore.ModuleScene != null) { Destroy(gameObject); return; }
ModuleCore.ModuleScene = this;
DontDestroyOnLoad(gameObject);
//if (ModuleCore.ModuleScene != null) { Destroy(gameObject); return; }
//ModuleCore.ModuleScene = this;
//DontDestroyOnLoad(gameObject);
}
public virtual void LoadSceneAsync(string scene) {
StartCoroutine(ILoadSceneAsync(scene));