46 lines
959 B
C#
46 lines
959 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Define
|
|
{
|
|
public static string MapPath(string name) => PathtoObject.TryGetValue(name, out string path) ? path : string.Empty;
|
|
|
|
static readonly Dictionary<string, string> PathtoObject = new ()
|
|
{
|
|
{"JoyStick", "Prefabs/UI/Objects/JoyStick"},
|
|
{"Btn_Attack", "Prefabs/UI/Objects/Button"},
|
|
{"Btn_Menu", "Prefabs/UI/Objects/Button"},
|
|
{"Bar_EXP", "Prefabs/UI/Objects/Bar"},
|
|
{"Panel", "Prefabs/UI/Objects/Panel"},
|
|
{"Menu_Setting", "Prefabs/UI/Objects/Menu_Setting"}
|
|
};
|
|
|
|
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
|
|
}
|
|
} |