Browse Source

Disabled SaveManager functionality for older versions of Unity. Works with Unity 5_3_OR_NEWER.

master
Christopher 8 years ago
parent
commit
85634f969a
  1. 6
      Assets/Fungus/Scripts/Commands/SavePoint.cs
  2. 11
      Assets/Fungus/Scripts/Components/FungusManager.cs
  3. 11
      Assets/Fungus/Scripts/Components/SaveData.cs
  4. 8
      Assets/Fungus/Scripts/Components/SaveManager.cs
  5. 11
      Assets/Fungus/Scripts/Components/SaveMenu.cs
  6. 11
      Assets/Fungus/Scripts/Editor/SaveDataEditor.cs
  7. 10
      Assets/Fungus/Scripts/Utils/SaveHistory.cs
  8. 11
      Assets/Fungus/Scripts/Utils/SavePointData.cs

6
Assets/Fungus/Scripts/Commands/SavePoint.cs

@ -1,6 +1,8 @@
// 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)
#if UNITY_5_3_OR_NEWER
using UnityEngine;
namespace Fungus
@ -149,4 +151,6 @@ namespace Fungus
#endregion
}
}
}
#endif

11
Assets/Fungus/Scripts/Components/FungusManager.cs

@ -1,4 +1,7 @@
using UnityEngine;
// 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 UnityEngine;
using System.Collections;
namespace Fungus
@ -8,7 +11,9 @@ namespace Fungus
/// </summary>
[RequireComponent(typeof(CameraManager))]
[RequireComponent(typeof(MusicManager))]
#if UNITY_5_3_OR_NEWER
[RequireComponent(typeof(SaveManager))]
#endif
public sealed class FungusManager : MonoBehaviour
{
static FungusManager instance;
@ -19,7 +24,9 @@ namespace Fungus
{
CameraManager = GetComponent<CameraManager>();
MusicManager = GetComponent<MusicManager>();
#if UNITY_5_3_OR_NEWER
SaveManager = GetComponent<SaveManager>();
#endif
}
/// <summary>
@ -47,10 +54,12 @@ namespace Fungus
/// </summary>
public MusicManager MusicManager { get; private set; }
#if UNITY_5_3_OR_NEWER
/// <summary>
/// Gets the save manager singleton instance.
/// </summary>
public SaveManager SaveManager { get; private set; }
#endif
/// <summary>
/// Gets the FungusManager singleton instance.

11
Assets/Fungus/Scripts/Components/SaveData.cs

@ -1,4 +1,9 @@
using UnityEngine;
// 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)
#if UNITY_5_3_OR_NEWER
using UnityEngine;
using System.Collections.Generic;
namespace Fungus
@ -62,4 +67,6 @@ namespace Fungus
#endregion
}
}
}
#endif

8
Assets/Fungus/Scripts/Components/SaveManager.cs

@ -1,8 +1,10 @@
// 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 UnityEngine;
#if UNITY_5_3_OR_NEWER
using UnityEngine.SceneManagement;
using UnityEngine;
namespace Fungus
{
@ -270,4 +272,6 @@ namespace Fungus
#endregion
}
}
}
#endif

11
Assets/Fungus/Scripts/Components/SaveMenu.cs

@ -1,4 +1,9 @@
using UnityEngine;
// 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)
#if UNITY_5_3_OR_NEWER
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
@ -284,4 +289,6 @@ namespace Fungus
#endregion
}
}
}
#endif

11
Assets/Fungus/Scripts/Editor/SaveDataEditor.cs

@ -1,4 +1,9 @@
using UnityEngine;
// 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)
#if UNITY_5_3_OR_NEWER
using UnityEngine;
using UnityEditor;
using Rotorz.ReorderableList;
@ -24,4 +29,6 @@ namespace Fungus.EditorUtils
serializedObject.ApplyModifiedProperties();
}
}
}
}
#endif

10
Assets/Fungus/Scripts/Utils/SaveHistory.cs

@ -1,6 +1,10 @@
using UnityEngine;
// 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)
#if UNITY_5_3_OR_NEWER
using UnityEngine;
using System.Collections.Generic;
using Fungus;
using UnityEngine.SceneManagement;
namespace Fungus
@ -124,3 +128,5 @@ namespace Fungus
#endregion
}
}
#endif

11
Assets/Fungus/Scripts/Utils/SavePointData.cs

@ -1,4 +1,9 @@
using System.Collections.Generic;
// 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)
#if UNITY_5_3_OR_NEWER
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Events;
@ -107,4 +112,6 @@ namespace Fungus
#endregion
}
}
}
#endif
Loading…
Cancel
Save