If you want to follow the Adventure game tutorial as a full front to back, starting as UniteTrainingDayPhase1 Project and finishing with it, follow the undocumented changes below.
Note: Prefabs to save it! If you want to save it all around the project, don't forget to save these changes to the Prefab.
Scripts/MonoBehaviours/SceneControl/SceneController:
Copy below code to overwrite the original SceneController
using System;
using UnityEngine;
using System.Collections;
public class SceneController : MonoBehaviour
{
public event Action BeforeSceneUnload;
public event Action AfterSceneLoad;
public CanvasGroup faderCanvasGroup;
public float fadeDuration = 1f;
public string startingSceneName = "SecurityRoom";
public string initialStartingPositionName = "DoorToMarket";
public SaveData playerSaveData;
private IEnumerator Start ()
{
faderCanvasGroup.alpha = 1f;
playerSaveData.Save (PlayerMovement.startingPositionKey, initialStartingPositionName);
yield break;
}
public void FadeAndLoadScene (SceneReaction sceneReaction)
{
}
}
/Scripts/ScriptableObjects/DataPersistence/SaveData:
Clear the TrySetValue and TryGetValue methods, as shown below
public void TrySetValue (string key, T value)
{
}
public bool TryGetValue (string key, ref T value)
{
return false;
}