You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
374 B
C#
17 lines
374 B
C#
2 months ago
|
using System.Collections;
|
||
|
using Cinemachine;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class SetCameraPriorityAfter : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField] private int _priority;
|
||
|
[SerializeField] private float _after;
|
||
|
|
||
|
private IEnumerator Start()
|
||
|
{
|
||
|
yield return new WaitForSeconds(_after);
|
||
|
|
||
|
GetComponent<CinemachineVirtualCamera>().Priority = _priority;
|
||
|
}
|
||
|
}
|