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

This feedback changes the timescale by sending a TimeScale event on play More...

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

Public Types

enum  Modes { Shake , Change , Reset }
 The possible modes for this feedback : More...
 

Public Attributes

Modes Mode = Modes.Shake
 sets the inspector color for this feedback More...
 
float TimeScale = 0.5f
 the new timescale to apply More...
 
float TimeScaleDuration = 1f
 the duration of the timescale modification More...
 
bool TimeScaleLerp = false
 whether or not we should lerp the timescale More...
 
float TimeScaleLerpSpeed = 1f
 the speed at which to lerp the timescale More...
 
bool ResetTimescaleOnStop = false
 whether to reset the timescale on Stop or not 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 CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, triggers a time scale event More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On stop, we reset timescale if needed More...
 

Properties

override float FeedbackDuration [getset]
 the duration of this feedback is the duration of the time modification More...
 

Additional Inherited Members

Detailed Description

This feedback changes the timescale by sending a TimeScale event on play

Member Enumeration Documentation

◆ Modes

The possible modes for this feedback :

  • shake : changes the timescale for a certain duration
  • change : sets the timescale to a new value, forever (until you change it again)
  • reset : resets the timescale to its previous value
Enumerator
Shake 
Change 
Reset 

Member Function Documentation

◆ CustomPlayFeedback()

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

On Play, triggers a time scale event

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On stop, we reset timescale if needed

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_TimescaleModifier.FeedbackTypeAuthorized = true
static

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

◆ Mode

Modes MoreMountains.Feedbacks.MMF_TimescaleModifier.Mode = Modes.Shake

sets the inspector color for this feedback

the selected mode

◆ ResetTimescaleOnStop

bool MoreMountains.Feedbacks.MMF_TimescaleModifier.ResetTimescaleOnStop = false

whether to reset the timescale on Stop or not

◆ TimeScale

float MoreMountains.Feedbacks.MMF_TimescaleModifier.TimeScale = 0.5f

the new timescale to apply

◆ TimeScaleDuration

float MoreMountains.Feedbacks.MMF_TimescaleModifier.TimeScaleDuration = 1f

the duration of the timescale modification

◆ TimeScaleLerp

bool MoreMountains.Feedbacks.MMF_TimescaleModifier.TimeScaleLerp = false

whether or not we should lerp the timescale

◆ TimeScaleLerpSpeed

float MoreMountains.Feedbacks.MMF_TimescaleModifier.TimeScaleLerpSpeed = 1f

the speed at which to lerp the timescale

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_TimescaleModifier.FeedbackDuration
getset

the duration of this feedback is the duration of the time modification


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