Rasagar/Library/PackageCache/com.unity.cinemachine/Samples~/Cinemachine Example Scenes/Shared/Scripts/ActivateCamOnPlay.cs
2024-08-26 23:07:20 +03:00

21 lines
350 B
C#

using UnityEngine;
namespace Cinemachine.Examples
{
[AddComponentMenu("")] // Don't display in add component menu
public class ActivateCamOnPlay : MonoBehaviour
{
public CinemachineVirtualCameraBase vcam;
// Use this for initialization
void Start ()
{
if (vcam)
{
vcam.MoveToTopOfPrioritySubqueue();
}
}
}
}