using System.Collections.Generic; using UnityEngine; public class Define { static readonly Dictionary PathtoObject = new () { {"JoyStick", "Prefabs/UI/JoyStick"}, {"Button_Attack", "Prefabs/UI/Button"}, {"Button_Defence", "Prefabs/UI/Button"}, // {"ExpBar", "Prefabs/UI/ExpBar"} {"ExpBar", "Prefabs/UI/Bar"} }; 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 } }