2026-06-11 베이스씬 구름 제거, 글로벌 오브젝트 구조수정

This commit is contained in:
skrwns304@gmail.com
2026-06-11 11:24:32 +09:00
parent 8e3cc91d92
commit 376f2e57f6
4 changed files with 24 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
public class GlobalObject : MonoBehaviour
{
private static GlobalObject _instance;
void Awake()
{
if (_instance == null)
{
_instance = this;
DontDestroyOnLoad(gameObject);
}
else
{
Destroy(gameObject);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d3bd75faf37f75344a6619bdfda2af3c