public static void AddPrefab(GameObject prefab) { PrefabInformation.Add(prefab, "物品说明"); prefabSelected = PrefabInformation.Count - 1; if (instance != null) { instance.Repaint(); } }
public static void DeletePrefab(GameObject prefab) { PrefabInformation.Remove(prefab); if (instance != null) { instance.Repaint(); } }
public static bool ContainsPrefab(GameObject prefab) { return(PrefabInformation.ContainsKey(prefab)); }