Camera Lock On override
This commit is contained in:
16
Assets/Scripts/Characters/LockOnCameraStateOverrideTarget.cs
Normal file
16
Assets/Scripts/Characters/LockOnCameraStateOverrideTarget.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Beyond
|
||||
{
|
||||
/// <summary>
|
||||
/// Marks a target that should override the lock-on camera state when close.
|
||||
/// </summary>
|
||||
public sealed class LockOnCameraStateOverrideTarget : MonoBehaviour
|
||||
{
|
||||
[Tooltip("Camera state to use while locked on this target.")]
|
||||
public string cameraStateName = "LockOnBig";
|
||||
|
||||
[Tooltip("Max distance to apply the override. Set per enemy as needed.")]
|
||||
public float maxDistance = 6f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d26a247418ec4c849b93fb72ca6279e0
|
||||
Reference in New Issue
Block a user