Add skybox, fix world map, temporarily break level load to demo stuff
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
@@ -7,7 +8,8 @@ namespace Scampz.GameJam
|
||||
{
|
||||
private bool loaded = false;
|
||||
public Transform spawnPoint;
|
||||
public int sceneIndex;
|
||||
[SerializeField]
|
||||
public int scene;
|
||||
|
||||
void OnTriggerEnter(Collider collider)
|
||||
{
|
||||
@@ -17,7 +19,7 @@ namespace Scampz.GameJam
|
||||
var player = GameObject.FindWithTag("Player");
|
||||
var cc = player.GetComponent<CharacterController>();
|
||||
cc.enabled = false;
|
||||
GameManager.Instance.LoadScene(sceneIndex, LoadSceneMode.Additive);
|
||||
GameManager.Instance.LoadScene(SceneManager.GetSceneByName(SceneNames.TempleA), LoadSceneMode.Additive);
|
||||
player.transform.position = spawnPoint.position;
|
||||
player.transform.rotation = spawnPoint.rotation;
|
||||
cc.enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user