Browse Source

Added menu options for spawning SaveMenu and SavedObjects prefabs

master
Christopher 8 years ago
parent
commit
1e9d021741
  1. 2
      Assets/Fungus/Resources/Prefabs/SaveMenu.prefab
  2. 0
      Assets/Fungus/Resources/Prefabs/SaveMenu.prefab.meta
  3. 0
      Assets/Fungus/Resources/Prefabs/SavedObjects.prefab
  4. 0
      Assets/Fungus/Resources/Prefabs/SavedObjects.prefab.meta
  5. 22
      Assets/Fungus/Scripts/Editor/SaveMenuItems.cs
  6. 8
      Assets/Fungus/Scripts/Editor/SaveMenuItems.cs.meta
  7. 2265
      Assets/FungusExamples/SaveGame/SaveExample.unity

2
Assets/FungusExamples/SaveGame/SaveMenu.prefab → Assets/Fungus/Resources/Prefabs/SaveMenu.prefab

@ -387,7 +387,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: abe25ebf9ddc8416ead6f30d4671fdbf, type: 3}
m_Name:
m_EditorClassIdentifier:
autoStartGame: 1
loadOnStart: 1
restartDeletesSave: 0
saveMenuGroup: {fileID: 225000012423540070}
saveMenuButton: {fileID: 114000012074514418}

0
Assets/FungusExamples/SaveGame/SaveMenu.prefab.meta → Assets/Fungus/Resources/Prefabs/SaveMenu.prefab.meta

0
Assets/FungusExamples/SaveGame/SavedObjects.prefab → Assets/Fungus/Resources/Prefabs/SavedObjects.prefab

0
Assets/FungusExamples/SaveGame/SavedObjects.prefab.meta → Assets/Fungus/Resources/Prefabs/SavedObjects.prefab.meta

22
Assets/Fungus/Scripts/Editor/SaveMenuItems.cs

@ -0,0 +1,22 @@
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
namespace Fungus.EditorUtils
{
public class SaveMenuItems
{
[MenuItem("Tools/Fungus/Create/Save Menu", false, 1100)]
static void CreateSaveMenu()
{
FlowchartMenuItems.SpawnPrefab("SaveMenu");
}
[MenuItem("Tools/Fungus/Create/Saved Objects", false, 1101)]
static void CreateSavedObjects()
{
FlowchartMenuItems.SpawnPrefab("SavedObjects");
}
}
}

8
Assets/Fungus/Scripts/Editor/SaveMenuItems.cs.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ecf88c3abcff64465bded608b8babf02
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

2265
Assets/FungusExamples/SaveGame/SaveExample.unity

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save