Exemplo n.º 1
0
 private void OnDestroy()
 {
     StylePickCenter.closeWindows -= CloseWindow;
     StylePickCenter.Stop();
     PPaintCenter.ClientRepaints -= Repaint;
     _window = null;
 }
Exemplo n.º 2
0
 private static void CloseWindow()
 {
     if (_window)
     {
         _window.Close();
     }
     _window = null;
 }
Exemplo n.º 3
0
 internal static void OpenWindow()
 {
     _window              = GetWindow <StylePickerWindow>(true);
     _window.minSize      = new Vector2(200, 300);
     _window.maxSize      = new Vector2(400, 800);
     _window.titleContent = new GUIContent("UI Prefab Picker");
     StylePickCenter.Start();
 }