You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
737 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cinemachine;
namespace Level1
{
public class CameraManager : MonoBehaviour
{
public CinemachineFreeLook cm;
public CameraManager SetLookAt(Transform target) {
cm.Follow = target;
cm.LookAt = target;
return this;
}
public CameraManager ChangePosition(float x,float y,float radius) {
cm.m_YAxis.Value = x;
cm.m_XAxis.Value = y;
cm.m_Orbits[1].m_Radius = radius;
return this;
}
public CameraManager ChangePosition(float x)
{
cm.m_YAxis.Value = x;
return this;
}
}
}