调整FEEL扩展
This commit is contained in:
@@ -10,7 +10,7 @@ using Unity.Cinemachine;
|
||||
namespace MoreMountains.FeedbacksForThirdParty
|
||||
{
|
||||
// 定义事件结构
|
||||
public struct MMCameraRotationShakeEvent
|
||||
public struct MMCinemachineRotationShakeEvent
|
||||
{
|
||||
static private event Delegate OnEvent;
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] private static void RuntimeInitialization() { OnEvent = null; }
|
||||
@@ -138,7 +138,7 @@ namespace MoreMountains.FeedbacksForThirdParty
|
||||
ShakeCurve = _originalShakeCurve;
|
||||
}
|
||||
|
||||
public virtual void OnMMCameraRotationShakeEvent(AnimationCurve shakeCurve, float duration, Vector3 rotationAmplitude, float remapMin, float remapMax, bool relative, float feedbacksIntensity = 1.0f, MMChannelData channelData = null, bool resetShakerValuesAfterShake = true, bool resetTargetValuesAfterShake = true, bool forwardDirection = true, TimescaleModes timescaleMode = TimescaleModes.Scaled, bool stop = false, bool restore = false)
|
||||
public virtual void OnMMCinemachineRotationShakeEvent(AnimationCurve shakeCurve, float duration, Vector3 rotationAmplitude, float remapMin, float remapMax, bool relative, float feedbacksIntensity = 1.0f, MMChannelData channelData = null, bool resetShakerValuesAfterShake = true, bool resetTargetValuesAfterShake = true, bool forwardDirection = true, TimescaleModes timescaleMode = TimescaleModes.Scaled, bool stop = false, bool restore = false)
|
||||
{
|
||||
if (!CheckEventAllowed(channelData)) return;
|
||||
|
||||
@@ -179,13 +179,13 @@ namespace MoreMountains.FeedbacksForThirdParty
|
||||
public override void StartListening()
|
||||
{
|
||||
base.StartListening();
|
||||
MMCameraRotationShakeEvent.Register(OnMMCameraRotationShakeEvent);
|
||||
MMCinemachineRotationShakeEvent.Register(OnMMCinemachineRotationShakeEvent);
|
||||
}
|
||||
|
||||
public override void StopListening()
|
||||
{
|
||||
base.StopListening();
|
||||
MMCameraRotationShakeEvent.Unregister(OnMMCameraRotationShakeEvent);
|
||||
MMCinemachineRotationShakeEvent.Unregister(OnMMCinemachineRotationShakeEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user