using UnityEngine; using UnityEngine.UI; namespace Game { public class Common { static public bool CheckTagIsRole(string tag,out E_NODE_TYPE nodetype) { switch (tag) { case Tags.MainPlayer: nodetype = E_NODE_TYPE.N_MAINPLAYER; return true; case Tags.NPC: nodetype = E_NODE_TYPE.N_NPC; return true; case Tags.Monster: nodetype = E_NODE_TYPE.N_MONSTER; return true; } nodetype = E_NODE_TYPE.N_FREE; return false; } } }