2026-06-11 기본 매니저 구성

This commit is contained in:
skrwns304@gmail.com
2026-06-11 01:06:48 +09:00
parent 37669d9592
commit 8e3cc91d92
20 changed files with 608 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
public class GameManager : MonoBehaviour,ISceneInitializable
{
public static GameManager Instance;
private void Awake()
{
if (Instance == null)
{
Instance = this; //만들어진 자신을 인스턴스로 설정
DontDestroyOnLoad(gameObject);
}
else
{
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
}
}
public void OnSceneLoaded()
{
}
}