Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Feedbacks.MMF_FloatController Class Reference

This feedback will trigger a one time play on a target FloatController More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_FloatController:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes { OneTime , ToDestination }
 the different possible modes More...
 

Public Attributes

Modes Mode = Modes.OneTime
 sets the inspector color for this feedback More...
 
FloatController TargetFloatController
 the float controller to trigger a one time play on More...
 
bool RevertToInitialValueAfterEnd = false
 whether this should revert to original at the end More...
 
float OneTimeDuration = 1f
 the duration of the One Time shake More...
 
float OneTimeAmplitude = 1f
 the amplitude of the One Time shake (this will be multiplied by the curve's height) More...
 
float OneTimeRemapMin = 0f
 the low value to remap the normalized curve value to More...
 
float OneTimeRemapMax = 1f
 the high value to remap the normalized curve value to More...
 
AnimationCurve OneTimeCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve to apply to the one time shake More...
 
float ToDestinationValue = 1f
 the value to move this float controller to More...
 
float ToDestinationDuration = 1f
 the duration over which to move the value More...
 
AnimationCurve ToDestinationCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve over which to move the value in ToDestination mode More...
 

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we grab our initial values on the target float controller More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play we trigger a one time or ToDestination play on our target float controller More...
 
override void CustomReset ()
 On reset we reset our values on the target controller with the ones stored initially More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On stop, we interrupt movement if it was active More...
 

Protected Attributes

float _oneTimeDurationStorage
 
float _oneTimeAmplitudeStorage
 
float _oneTimeRemapMinStorage
 
float _oneTimeRemapMaxStorage
 
AnimationCurve _oneTimeCurveStorage
 
float _toDestinationValueStorage
 
float _toDestinationDurationStorage
 
AnimationCurve _toDestinationCurveStorage
 
bool _revertToInitialValueAfterEndStorage
 

Properties

override float? FeedbackDuration [getset]
 the duration of this feedback is the duration of the one time hit More...
 

Additional Inherited Members

Detailed Description

This feedback will trigger a one time play on a target FloatController

Member Enumeration Documentation

◆ Modes

the different possible modes

Enumerator
OneTime 
ToDestination 

Member Function Documentation

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_FloatController.CustomInitialization ( MMF_Player  owner)
protectedvirtual

On init we grab our initial values on the target float controller

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_FloatController.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On play we trigger a one time or ToDestination play on our target float controller

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomReset()

override void MoreMountains.Feedbacks.MMF_FloatController.CustomReset ( )
protectedvirtual

On reset we reset our values on the target controller with the ones stored initially

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_FloatController.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On stop, we interrupt movement if it was active

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _oneTimeAmplitudeStorage

float MoreMountains.Feedbacks.MMF_FloatController._oneTimeAmplitudeStorage
protected

◆ _oneTimeCurveStorage

AnimationCurve MoreMountains.Feedbacks.MMF_FloatController._oneTimeCurveStorage
protected

◆ _oneTimeDurationStorage

float MoreMountains.Feedbacks.MMF_FloatController._oneTimeDurationStorage
protected

◆ _oneTimeRemapMaxStorage

float MoreMountains.Feedbacks.MMF_FloatController._oneTimeRemapMaxStorage
protected

◆ _oneTimeRemapMinStorage

float MoreMountains.Feedbacks.MMF_FloatController._oneTimeRemapMinStorage
protected

◆ _revertToInitialValueAfterEndStorage

bool MoreMountains.Feedbacks.MMF_FloatController._revertToInitialValueAfterEndStorage
protected

◆ _toDestinationCurveStorage

AnimationCurve MoreMountains.Feedbacks.MMF_FloatController._toDestinationCurveStorage
protected

◆ _toDestinationDurationStorage

float MoreMountains.Feedbacks.MMF_FloatController._toDestinationDurationStorage
protected

◆ _toDestinationValueStorage

float MoreMountains.Feedbacks.MMF_FloatController._toDestinationValueStorage
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_FloatController.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ Mode

Modes MoreMountains.Feedbacks.MMF_FloatController.Mode = Modes.OneTime

sets the inspector color for this feedback

the mode this controller is in

◆ OneTimeAmplitude

float MoreMountains.Feedbacks.MMF_FloatController.OneTimeAmplitude = 1f

the amplitude of the One Time shake (this will be multiplied by the curve's height)

◆ OneTimeCurve

AnimationCurve MoreMountains.Feedbacks.MMF_FloatController.OneTimeCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve to apply to the one time shake

◆ OneTimeDuration

float MoreMountains.Feedbacks.MMF_FloatController.OneTimeDuration = 1f

the duration of the One Time shake

◆ OneTimeRemapMax

float MoreMountains.Feedbacks.MMF_FloatController.OneTimeRemapMax = 1f

the high value to remap the normalized curve value to

◆ OneTimeRemapMin

float MoreMountains.Feedbacks.MMF_FloatController.OneTimeRemapMin = 0f

the low value to remap the normalized curve value to

◆ RevertToInitialValueAfterEnd

bool MoreMountains.Feedbacks.MMF_FloatController.RevertToInitialValueAfterEnd = false

whether this should revert to original at the end

◆ TargetFloatController

FloatController MoreMountains.Feedbacks.MMF_FloatController.TargetFloatController

the float controller to trigger a one time play on

◆ ToDestinationCurve

AnimationCurve MoreMountains.Feedbacks.MMF_FloatController.ToDestinationCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve over which to move the value in ToDestination mode

◆ ToDestinationDuration

float MoreMountains.Feedbacks.MMF_FloatController.ToDestinationDuration = 1f

the duration over which to move the value

◆ ToDestinationValue

float MoreMountains.Feedbacks.MMF_FloatController.ToDestinationValue = 1f

the value to move this float controller to

Property Documentation

◆ FeedbackDuration

override float? MoreMountains.Feedbacks.MMF_FloatController.FeedbackDuration
getset

the duration of this feedback is the duration of the one time hit


The documentation for this class was generated from the following file: