씬 전환을 위한 씬매니저 추가 및 씬 전환 기능 추가

This commit is contained in:
2026-01-28 03:23:42 +09:00
parent 3ddecbf75f
commit 7f17e25137
18 changed files with 617 additions and 84 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
using UnityEngine.EventSystems;
public abstract class BaseScene : MonoBehaviour
{
public Define.Scene SceneType { get; protected set; } = Define.Scene.Unknown;
void Awake()
{
Init();
}
protected virtual void Init()
{
// 더 이상 사용되지 않음
// GameObject.FindObjectOfType(typeof(EventSystem));
Object obj = GameObject.FindAnyObjectByType(typeof(EventSystem));
if (obj == null)
{
Managers.Resource.Instantiate("UI/EventSystem").name = "@EventSystem";
}
}
public abstract void Clear();
}