Browse Source

Fix for start point not being executed on startup.

master
Christopher 8 years ago
parent
commit
6b5eff338d
  1. 10
      Assets/Fungus/Scripts/Components/SaveManager.cs

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

@ -147,6 +147,16 @@ namespace Fungus
protected System.Action loadAction;
protected virtual void Start()
{
// The OnSceneLoaded callback above may not be called for the initial scene load in the game,
// so we call ExecuteStartBlock when the SaveManager starts up too.
if (loadAction == null)
{
loadAction = ExecuteStartBlock;
}
}
protected virtual void Update()
{
// Execute any previously scheduled load action

Loading…
Cancel
Save