public static void OnNameplateRemoved(Nameplate nameplate, ExEntityLink link) { NameplateHook hook = link.GetComponent <NameplateHook>(); if (hook != null) { NameplateHook.Destroy(hook); } }
public static void OnDisplayRemoved(Ex.Typed display, ExEntityLink link) { TypedHook hook = link.GetComponent <TypedHook>(); if (hook != null) { if (hook.type != null) { link.gameObject.name = "" + link.id; } DisplayHook.Destroy(hook); } }
public static void OnDisplayRemoved(Ex.Display display, ExEntityLink link) { DisplayHook hook = link.GetComponent <DisplayHook>(); if (hook != null) { if (hook.child != null) { GameObject.Destroy(hook.child.gameObject); } DisplayHook.Destroy(hook); } }