2026-05-14 2D Platformer Game 캐릭터 이동

This commit is contained in:
2026-05-14 18:01:14 +09:00
parent ea31d5a4e0
commit 764bc305f7
10 changed files with 450 additions and 14 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);
}
}
}