using System; using Sirenix.OdinInspector; using SLSUtilities.Feedback; using UnityEngine; namespace Cielonos.MainGame.Effects.Feedback { /// /// Cinemachine摄像机震动Action的基类。 /// 封装了统一的触发逻辑和参数定义。 /// [Serializable] public abstract class CinemachineActionBase : FeedbackActionBase { public override void OnStart(FeedbackContext context) { TriggerEvent(context); } public override void OnUpdate(FeedbackContext context, float normalizedTime) { } public override void OnEnd(FeedbackContext context) { } public override void OnInterrupt(FeedbackContext context) { StopEvent(context); } /// /// 触发震动事件(由子类实现)。 /// protected abstract void TriggerEvent(FeedbackContext context); /// /// 停止震动事件(由子类实现)。 /// protected abstract void StopEvent(FeedbackContext context); } }