Add camera activation back to levels

This commit is contained in:
2022-08-20 19:54:38 -07:00
parent 886b957039
commit aaa043470b
5 changed files with 23 additions and 49 deletions

View File

@@ -30,9 +30,10 @@ namespace Scampz.GameJam
private IEnumerator LoadSceneAsync(string sceneName, LoadSceneMode loadSceneMode)
{
_levelChanger.FadeAnimation();
yield return new WaitForSecondsRealtime(3f);
yield return null;
var loadSceneOperation = SceneManager.LoadSceneAsync(sceneName, loadSceneMode);
yield return new WaitForSeconds(3f);
loadSceneOperation.allowSceneActivation = false;
while (!loadSceneOperation.isDone)
{