
+ OceanCamera, OceanUi 추가 + CameraManager, UiManager에 Ocean 데이터 추가 + Scene 이름 변경 (02.Combet -> 02.Combat)
40 lines
840 B
C#
40 lines
840 B
C#
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class CameraManager : Singleton<CameraManager>
|
|
{
|
|
public Camera MainCam { get; set; }
|
|
|
|
public OceanCamera OceanCamera { get; 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()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |