Fix level changing and do math right this time

This commit is contained in:
2022-08-13 15:59:42 -07:00
parent e0a2b1a8be
commit fd45fc11dc
4 changed files with 1122 additions and 660 deletions

View File

@@ -1,5 +1,4 @@
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Scampz.GameJam
{
@@ -13,12 +12,6 @@ namespace Scampz.GameJam
public void OnTriggerEnter(Collider collider)
{
animator.SetTrigger("FadeOut");
CharacterManager.Instance.LoadScene(sceneIndex, LoadSceneMode.Additive);
}
public void OnFadeComplete()
{
CharacterManager.Instance.LoadScene(sceneIndex, LoadSceneMode.Additive);
}
private void Awake()