1using System.Collections;
2using System.Collections.Generic;
4using NaughtyAttributes;
16 private void ActualDelete()
19 var pbib = GetComponentInParent<pb_PrefabBrowserItemButton>();
20 if (pbib.fullFilePath !=
"")
22 var tc = pbib.asset.GetComponent<
TagCloud>();
25 var alltc = FindObjectsOfType<TagCloud>(
true);
26 foreach (var tag
in alltc)
28 if (tag.filePath == tc.filePath)
30 Destroy(tag.gameObject);
34 System.IO.File.Delete(pbib.fullFilePath);
37 Destroy(transform.parent.gameObject);
41 var pbib = GetComponentInParent<pb_PrefabBrowserItemButton>();
43 var tc = pbib.asset.GetComponent<
TagCloud>();
46 var alltc = FindObjectsOfType<TagCloud>(
true);
47 foreach (var tag
in alltc)
49 if (tag.filePath == tc.filePath)
51 Destroy(tag.gameObject);
57 Destroy(transform.parent.gameObject);
UnityEngine.UI.Button Button
void Reload(bool global=false)
static pb_PrefabBrowser instance
void DeleteAsset(GameObject asset)
static string T(string key)
static UploadLevelObjects instance
void QueueDelete(string fileName)