Beispiel #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open editor"))
     {
         if (editor == null)
         {
             editor          = EditorWindow.GetWindow <SequenceWindow>();
             editor.Sequence = (target as Talker).Sequence;
         }
     }
     if (GUILayout.Button("Close editor"))
     {
         if (editor != null)
         {
             editor.Close();
         }
     }
 }