public void CleanCurScene() { if (curScene != null) { curScene.Dispose(); curScene = null; } }
public void ChangeScene(string sceneName) { CleanCurScene(); Resources.UnloadUnusedAssets(); if (OnSceneEnter != null) { OnSceneEnter.Invoke(); } curScene = new SceneIns(sceneName); }