조이스틱 동작이 자연스럽게 구현하도록 수정 및 에디터 상에서 좌우 입력과 점프 동작 추가 적용함

This commit is contained in:
aube.lee
2025-01-28 18:45:33 +09:00
parent 752d02324a
commit e04ef0c613
11 changed files with 367 additions and 207 deletions

View File

@@ -6,9 +6,16 @@ namespace TON
{
public class UIBase : MonoBehaviour
{
public Object eventSystem;
public virtual void Show()
{
Instantiate(Resources.Load("EventSystem/Prefabs/TON.EventSystem"));
// eventSystem이 현재 씬에 존재하지 않는 경우
if (eventSystem == null)
{
// UI EventSystem 정상 동작 되도록 GameObject Load
eventSystem = Instantiate(Resources.Load("EventSystem/Prefabs/TON.EventSystem"));
}
gameObject.SetActive(true);
}