literally half of the game

This commit is contained in:
Sylvia 2026-08-27 04:07:01 -07:00
parent 1590b5faa6
commit b842289076
77 changed files with 11904 additions and 72 deletions

View file

@ -0,0 +1,32 @@
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
}
}