public static ConfigNPC GetInstance() { if (instance != null) { return(instance); } instance = new ConfigNPC(); return(instance); }
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"); }