23 lines
426 B
C#
23 lines
426 B
C#
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;
|
|
}
|
|
}
|
|
}
|