protected virtual void DisplayBasicControls_Game() { LBGameplayComponent t = (LBGameplayComponent)target; if (!Application.isPlaying) { return; } MakeCenteredLabel("------ Component controls ------", 8, 8); GUILayout.BeginVertical(EditorStyles.helpBox); GUILayout.BeginHorizontal(); GUILayout.Space(4); if (GUILayout.Button("Activate")) { t.Activate(); } if (GUILayout.Button("Deactivate")) { t.Deactivate(); } GUILayout.Space(4); GUILayout.EndHorizontal(); DisplayControls_Game(); GUILayout.EndVertical(); }
protected virtual void DisplayBasicInfo_Game() { LBGameplayComponent t = (LBGameplayComponent)target; if (!Application.isPlaying) { return; } MakeCenteredLabel("------ Component Info ------", 8, 8); GUILayout.BeginVertical(EditorStyles.helpBox); GUILayout.BeginHorizontal(); EditorGUILayout.PrefixLabel("Component state:"); GUILayout.Label(t.State.ToString()); GUILayout.EndHorizontal(); DisplayInfo_Game(); GUILayout.EndVertical(); }