示例#1
0
 public static void ShowPalette()
 {
     Instance = (PaletteWindow) EditorWindow.GetWindow(typeof (PaletteWindow));
     Instance.titleContent = new GUIContent("Palette");
 }
示例#2
0
 private static void ShowPalette()
 {
     PaletteWindow.ShowPalette();
 }
示例#3
0
 public static void ShowPalette()
 {
     instance = (PaletteWindow)EditorWindow.GetWindow
                    (typeof(PaletteWindow));
     instance.titleContent = new GUIContent("Palette");
 }
示例#4
0
 private void UpdateCurrentPieceInstance(PaletteWindow.PaletteItemSelection itemSelectionEvent)
 {
     _itemSelected = itemSelectionEvent.Item;
     _itemPreview = itemSelectionEvent.Preview;
     _pieceSelected = (LevelPiece) _itemSelected.GetComponent<LevelPiece>();
     Repaint();
 }