OldBlueWater/BlueWater/Assets/02.Scripts/CameraManager.cs

43 lines
917 B
C#
Raw Normal View History

2023-09-18 05:06:11 +00:00
using System;
using System.Collections;
2023-08-08 07:08:41 +00:00
using Cinemachine;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Serialization;
2023-08-08 07:08:41 +00:00
2023-08-31 06:46:13 +00:00
// ReSharper disable once CheckNamespace
namespace BlueWaterProject
2023-08-08 07:08:41 +00:00
{
public class CameraManager : Singleton<CameraManager>
2023-08-31 06:46:13 +00:00
{
2023-09-18 05:06:11 +00:00
public Camera MainCam { get; private set; }
[Title("InShip Change Offset")]
private Vector3 targetOffset;
private Vector3 startingOffset;
private float elapsedTime = 0;
private float duration = 0.5f;
private bool isTransitioning = false;
2023-10-24 02:29:50 +00:00
protected override void OnAwake()
2023-09-18 05:06:11 +00:00
{
MainCam = Camera.main;
}
2023-08-31 06:46:13 +00:00
private void Start()
{
2023-12-11 12:56:43 +00:00
2023-08-31 06:46:13 +00:00
}
2023-08-31 06:46:13 +00:00
private void Update()
{
2023-12-11 12:56:43 +00:00
2023-08-31 06:46:13 +00:00
}
private void FixedUpdate()
{
2023-11-29 02:39:46 +00:00
2023-10-23 03:12:13 +00:00
}
}
}