コード例 #1
0
 public static ConfigNPC GetInstance()
 {
     if (instance != null)
     {
         return(instance);
     }
     instance = new ConfigNPC();
     return(instance);
 }
コード例 #2
0
ファイル: ResPath.cs プロジェクト: zj831007/UnityMMO
        public static string GetNPCLooksPath(long typeID)
        {
            var bodyResID = ConfigNPC.GetInstance().GetBodyResID(typeID);

            if (bodyResID == 0)
            {
                Debug.LogError("npc body res id 0, typeID:" + typeID);
                return(string.Empty);
            }
            return(NPCResPath + "/npc_" + typeID + "/model_clothe_" + bodyResID + ".prefab");
        }