
+ 03.Stage_Test_SJ2 씬 추가 (성진님 테스트용) + Layer Skill 추가 + LavaEruption 스킬 로직 변경, 데미지 공유 + 플레이어 공격 받을 때, 카메라 쉐이킹 테스트
23 lines
651 B
C#
23 lines
651 B
C#
using Cinemachine;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class InIslandCamera : Singleton<InIslandCamera>
|
|
{
|
|
[field: Required("InIslandCamera를 넣어주세요.")]
|
|
[field: SerializeField] public CinemachineVirtualCamera InIslandCam { get; private set; }
|
|
|
|
/// <summary>
|
|
/// LookAt target and follow target
|
|
/// </summary>
|
|
/// <param name="obj"></param>
|
|
public void SetTarget(Transform obj)
|
|
{
|
|
InIslandCam.LookAt = obj;
|
|
InIslandCam.Follow = obj;
|
|
}
|
|
}
|
|
} |