Camera Lock On override

This commit is contained in:
SzymonMis
2026-02-19 21:34:50 +01:00
parent e88179d52c
commit 4c0affacc9
5 changed files with 188 additions and 1 deletions

View 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;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d26a247418ec4c849b93fb72ca6279e0