43 lines
917 B
C#
43 lines
917 B
C#
using System;
|
|
using System.Collections;
|
|
using Cinemachine;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
using UnityEngine.Serialization;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class CameraManager : Singleton<CameraManager>
|
|
{
|
|
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;
|
|
|
|
protected override void OnAwake()
|
|
{
|
|
MainCam = Camera.main;
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |