using UnityEngine; public class MapManager : MonoBehaviour { #region Statication public static MapManager instance; private void Awake() { if (instance != null && instance != this) { Destroy(gameObject); return; } DontDestroyOnLoad(this); instance = this; } #endregion public Player player; public void TravelToLocation(Map mapToLoad) { //needs to fade to black beforehand and afterhand in reverse mapToLoad.Load(); //add location parameter. //needs a check for where the player entered from so the game knows where to spawn the player } }