public void InspectVolume() { if (inspectWindow != null) { inspectWindow.Close(); Destroy(inspectWindow); } inspectWindow = gameObject.AddComponent <VolumeInspectWindow>(); inspectWindow.AttachTo(this); }
public void CloseInspectWindow() { inspectWindow.Close(); Destroy(inspectWindow); inspectWindow = null; }