+ 주인공 스킬(검의 왈츠)가 추가되었습니다. ㄴ 검의 왈츠 애니메이션이 추가되었습니다. ㄴ 스킬에 맞게 UI를 표시합니다. + 주인공이 더 이상 공격 중에 이동할 수 없습니다. + 새로운 스킬 시스템으로 변경하였습니다. + Combat씬에서 사용할 Camera, Ui를 추가하였습니다. + Input Action이 변경 되었습니다. (UseSkill => ActivateMainSkill) + Idamameable 인터페이스에 GetCurrentHp() 기능이 추가되었습니다. ㄴ 변경에 따라 기존 스크립트들에 추가되었습니다.
42 lines
904 B
C#
42 lines
904 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; }
|
|
|
|
public CombatCamera CombatCamera { 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()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |