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.
CrowdControl/Assets/3rd/D2D_Scripts/Camera/Scripts/SetCameraPriorityAfter.cs

17 lines
374 B
C#

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;
}
}