void RenameSite() { bool en = GUI.enabled; GUI.enabled = en && (site != null); if (GUILayout.Button("Rename Site", ELStyles.normal, GUILayout.ExpandWidth(false))) { if (site != null) { ELRenameWindow.ShowGUI(site); } } GUI.enabled = en; }
public void ShowRenameUI() { ELRenameWindow.ShowGUI(this); }
void OnDestroy() { Debug.Log("[ELRenameWindow] OnDestroy"); windowInstance = null; padInstance = null; }
void Awake() { windowInstance = this; enabled = false; }