43 lines
833 B
C#
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
|
|
}
|
|
} |