조이스틱 동작이 자연스럽게 구현하도록 수정 및 에디터 상에서 좌우 입력과 점프 동작 추가 적용함
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user