Files
PuzzleColorBall/Assets/Scripts/menumanager.cs
bance fc77728e07 Menu big update
A menu 90%-ának elkészítése a bolt és a bállítások nélkül
2023-03-16 16:43:31 +01:00

26 lines
490 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
public class menumanager : MonoBehaviour
{
public CinemachineVirtualCamera currentCamera;
// Start is called before the first frame update
void Start()
{
currentCamera.Priority++;
}
public void UpdateCamera(CinemachineVirtualCamera target)
{
currentCamera.Priority--;
currentCamera = target;
currentCamera.Priority++;
}
}