/// <summary> /// Called from OnGUI /// For drawing "Scene Controls" such as adding scenes/characters /// </summary> void DrawSceneControls() { //Control Area GUILayout.BeginHorizontal(); { if (GUILayout.Button("Add Scene")) { NewSceneWizard.CreateWizard(CreateScene); } if (GUILayout.Button("Add Character")) { } } GUILayout.EndHorizontal(); GUILayout.Space(6); }
/// <summary> /// Create a wizard! /// </summary> public static void CreateWizard(CreateSceneDelegate delegateMethod) { NewSceneWizard wizard = ScriptableWizard.DisplayWizard <NewSceneWizard>("Create New Scene", "Create", "Cancel"); wizard.createSceneDelegate = delegateMethod; }