literally half of the game
This commit is contained in:
parent
1590b5faa6
commit
b842289076
77 changed files with 11904 additions and 72 deletions
32
Assets/Scripts/MapManager.cs
Normal file
32
Assets/Scripts/MapManager.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue