|
|
@ -112,22 +112,29 @@ public class FungusEditorWindow : EditorWindow |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (sequenceController.activeSequence == null) |
|
|
|
if (sequenceController.activeSequence == null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
labelText += ": Idle"; |
|
|
|
labelText += " (Idle)"; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
labelText += ": Active"; |
|
|
|
labelText += " (Running)"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
labelText += ": Edit"; |
|
|
|
labelText += " (Edit)"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.BeginVertical(); |
|
|
|
GUILayout.BeginVertical(); |
|
|
|
GUILayout.FlexibleSpace(); |
|
|
|
GUILayout.FlexibleSpace(); |
|
|
|
GUILayout.Label(labelText); |
|
|
|
GUILayout.BeginHorizontal(); |
|
|
|
GUILayout.Space(15); |
|
|
|
GUILayout.Space(10); |
|
|
|
|
|
|
|
if (GUILayout.Button(labelText)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Selection.activeGameObject = sequenceController.gameObject; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
GUILayout.FlexibleSpace(); |
|
|
|
|
|
|
|
GUILayout.EndHorizontal(); |
|
|
|
|
|
|
|
GUILayout.Space(10); |
|
|
|
GUILayout.EndVertical(); |
|
|
|
GUILayout.EndVertical(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|