Start piecing together zones

This commit is contained in:
2022-08-14 00:30:42 -07:00
parent 19f6555ce9
commit c2a3e96f16
25 changed files with 1981 additions and 2473 deletions

View File

@@ -6,6 +6,7 @@ namespace Scampz.GameJam
public class LoadScene : MonoBehaviour
{
private bool loaded = false;
public Transform spawnPoint;
public int sceneIndex;
void OnTriggerEnter(Collider collider)
@@ -15,6 +16,8 @@ namespace Scampz.GameJam
loaded = true;
GameManager.Instance.LoadScene(sceneIndex, LoadSceneMode.Additive);
GameObject.FindWithTag("Player").transform.position = spawnPoint.position;
GameObject.FindWithTag("Player").transform.rotation = spawnPoint.rotation;
}
}
}