VirtualFramework/Assets/Scripts/Editor/OpeanCustomScene.cs
shenjianxing 4e911ce005 增加场景自动从main启动
增加相机QE移动
2025-02-18 17:06:53 +08:00

18 lines
451 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class OpeanCustomScene : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void Initialize()
{
Scene scene = SceneManager.GetActiveScene();
if (!scene.name.Equals("Main"))
{
SceneManager.LoadScene("Main");
}
}
}