Add camera activation back to levels
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam.Assets.Scripts
|
||||
{
|
||||
public class ActivateCamera : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Camera[] cameras;
|
||||
|
||||
private void OnTriggerEnter(Collider collider)
|
||||
{
|
||||
if (collider.CompareTag("Player"))
|
||||
StartCoroutine(ActivateCameras());
|
||||
}
|
||||
|
||||
private IEnumerator ActivateCameras()
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d750c023dab0b040a63e345c8b2830d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user