34 lines
878 B
C#
34 lines
878 B
C#
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;
|
|
}
|
|
|
|
|
|
#region µ¯Ä»
|
|
|
|
static public string GetBulletProfabPath(string Name)
|
|
{
|
|
return $"Assets/GameAssets/Prefabs/Bullet/{Name}.prefab"; ;
|
|
}
|
|
#endregion
|
|
}
|
|
} |