Practice_Unity/Assets/Scripts/Utils/Define.cs
Seonkyu.kim 4fa0e67c42 작업
1. UI 모듈화 진행 중
 - 버튼이라는거 하나로 모든 버튼 동작을 하게 하려는데 다중 등록이 잘 안되는 문제가 있음
2025-10-13 18:00:21 +09:00

43 lines
833 B
C#

using System.Collections.Generic;
using UnityEngine;
public class Define
{
static readonly Dictionary<string, string> PathtoObject = new ()
{
{"JoyStick", "Prefabs/UI/JoyStick"},
{"Button_Attack", "Prefabs/UI/Button"},
{"Button_Defence", "Prefabs/UI/Button"},
{"ExpBar", "Prefabs/UI/ExpBar"}
};
public static string MapPath(string name) => PathtoObject.TryGetValue(name, out string path) ? path : string.Empty;
public enum Scene
{
Uknown,
Title,
Lobby,
Game,
}
public enum InputEvent
{
Down,
Up,
Press,
Click,
}
public enum CameraMode
{
QuarterView,
SideView,
TopView,
}
public enum EnemyType
{
Unknown,
Test
}
}