static void Init() { NGUIDepthSetterMain window = (NGUIDepthSetterMain)EditorWindow.GetWindow(typeof(NGUIDepthSetterMain), false, "NGUI Depth Setter"); window.Clear(); window.ClearPanels(); window.Show(); }
void OnDisable() { Clear(); mainWindow = null; }
void OnEnable() { mainWindow = this; }