...
This commit is contained in:
@@ -7,8 +7,8 @@ namespace OnlyScove.Scripts
|
||||
{
|
||||
public enum CameraViewMode { ThirdPerson, FirstPerson }
|
||||
|
||||
[SerializeField] InputReader inputReader;
|
||||
[SerializeField] Transform followTarget; // Player's root for TPV
|
||||
public InputReader inputReader; // Đổi từ [SerializeField] thành public
|
||||
public Transform followTarget; // Player's root for TPV
|
||||
[SerializeField] float positionSmoothTime = 0.12f;
|
||||
[SerializeField] float rotationSmoothTime = 5f;
|
||||
[SerializeField] Vector2 framingOffset;
|
||||
@@ -72,6 +72,7 @@ namespace OnlyScove.Scripts
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (followTarget == null) return;
|
||||
HandleViewTransition();
|
||||
|
||||
if (inputReader != null)
|
||||
|
||||
Reference in New Issue
Block a user