|
|
|
@ -14,6 +14,7 @@ public class PotionManager : Singleton<PotionManager> |
|
|
|
public string filePath; |
|
|
|
public Dictionary<string, string[]> potionDictionary = new Dictionary<string, string[]>(); |
|
|
|
public Dictionary<int, string> potionEffect = new Dictionary<int, string>(); |
|
|
|
public HashSet<string> potionSet = new HashSet<string>(); |
|
|
|
|
|
|
|
private void OnEnable() |
|
|
|
{ |
|
|
|
@ -117,6 +118,7 @@ public class PotionManager : Singleton<PotionManager> |
|
|
|
} |
|
|
|
// 用逗号分隔每行数据
|
|
|
|
string[] values = line.Split(','); |
|
|
|
potionSet.Add(values[0]); |
|
|
|
potionDictionary.Add(values[0],values); |
|
|
|
} |
|
|
|
} |
|
|
|
|