狗屎Minimax坏我代码
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
using SLSUtilities.Feedback;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cielonos.MainGame.Effects.Feedback
|
||||
{
|
||||
/// <summary>
|
||||
/// Cinemachine摄像机震动Action的基类。
|
||||
/// 封装了统一的触发逻辑和参数定义。
|
||||
/// </summary>
|
||||
[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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 触发震动事件(由子类实现)。
|
||||
/// </summary>
|
||||
protected abstract void TriggerEvent(FeedbackContext context);
|
||||
|
||||
/// <summary>
|
||||
/// 停止震动事件(由子类实现)。
|
||||
/// </summary>
|
||||
protected abstract void StopEvent(FeedbackContext context);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user