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_Image Class Reference

This feedback will let you change the color of a target sprite renderer over time, and flip it on X or Y. You can also use it to command one or many MMSpriteRendererShakers. More...

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

Public Types

enum  Modes { OverTime , Instant , ShakerEvent }
 the possible modes for this feedback More...
 

Public Attributes

Image BoundImage
 the Image to affect when playing the feedback More...
 
Modes Mode = Modes.OverTime
 whether the feedback should affect the Image instantly or over a period of time More...
 
float Duration = 0.2f
 how long the Image should change over time More...
 
bool StartsOff = false
 whether or not that Image should be turned off on start More...
 
bool ResetShakerValuesAfterShake = true
 whether or not to reset shaker values after shake More...
 
bool ResetTargetValuesAfterShake = true
 whether or not to reset the target's values after shake More...
 
bool UseRange = false
 whether or not to broadcast a range to only affect certain shakers More...
 
float EventRange = 100f
 the range of the event, in units More...
 
Transform EventOriginTransform
 the transform to use to broadcast the event as origin point More...
 
bool AllowAdditivePlays = false
 if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over More...
 
bool ModifyColor = true
 whether or not to modify the color of the image More...
 
Gradient ColorOverTime
 the colors to apply to the Image over time More...
 
Color InstantColor
 the color to move to in instant 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 turn the Image off if needed More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we turn our Image on and start an over time coroutine if needed More...
 
virtual IEnumerator ImageSequence ()
 This coroutine will modify the values on the Image More...
 
virtual void SetImageValues (float time)
 Sets the various values on the sprite renderer on a specified time (between 0 and 1) More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Turns the sprite renderer off on stop More...
 
virtual void Turn (bool status)
 Turns the sprite renderer on or off More...
 

Protected Attributes

Coroutine _coroutine
 

Properties

override float? FeedbackDuration [getset]
 sets the inspector color for this feedback More...
 
override bool HasChannel [get]
 

Additional Inherited Members

Detailed Description

This feedback will let you change the color of a target sprite renderer over time, and flip it on X or Y. You can also use it to command one or many MMSpriteRendererShakers.

Member Enumeration Documentation

◆ Modes

the possible modes for this feedback

Enumerator
OverTime 
Instant 
ShakerEvent 

Member Function Documentation

◆ CustomInitialization()

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

On init we turn the Image off if needed

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

On Play we turn our Image on and start an over time coroutine if needed

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_Image.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1 
)
protectedvirtual

Turns the sprite renderer off on stop

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ ImageSequence()

virtual IEnumerator MoreMountains.Feedbacks.MMF_Image.ImageSequence ( )
protectedvirtual

This coroutine will modify the values on the Image

Returns

◆ SetImageValues()

virtual void MoreMountains.Feedbacks.MMF_Image.SetImageValues ( float  time)
protectedvirtual

Sets the various values on the sprite renderer on a specified time (between 0 and 1)

Parameters
time

◆ Turn()

virtual void MoreMountains.Feedbacks.MMF_Image.Turn ( bool  status)
protectedvirtual

Turns the sprite renderer on or off

Parameters
status

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_Image._coroutine
protected

◆ AllowAdditivePlays

bool MoreMountains.Feedbacks.MMF_Image.AllowAdditivePlays = false

if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over

◆ BoundImage

Image MoreMountains.Feedbacks.MMF_Image.BoundImage

the Image to affect when playing the feedback

◆ ColorOverTime

Gradient MoreMountains.Feedbacks.MMF_Image.ColorOverTime

the colors to apply to the Image over time

◆ Duration

float MoreMountains.Feedbacks.MMF_Image.Duration = 0.2f

how long the Image should change over time

◆ EventOriginTransform

Transform MoreMountains.Feedbacks.MMF_Image.EventOriginTransform

the transform to use to broadcast the event as origin point

◆ EventRange

float MoreMountains.Feedbacks.MMF_Image.EventRange = 100f

the range of the event, in units

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Image.FeedbackTypeAuthorized = true
static

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

◆ InstantColor

Color MoreMountains.Feedbacks.MMF_Image.InstantColor

the color to move to in instant mode

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Image.Mode = Modes.OverTime

whether the feedback should affect the Image instantly or over a period of time

◆ ModifyColor

bool MoreMountains.Feedbacks.MMF_Image.ModifyColor = true

whether or not to modify the color of the image

◆ ResetShakerValuesAfterShake

bool MoreMountains.Feedbacks.MMF_Image.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.Feedbacks.MMF_Image.ResetTargetValuesAfterShake = true

whether or not to reset the target's values after shake

◆ StartsOff

bool MoreMountains.Feedbacks.MMF_Image.StartsOff = false

whether or not that Image should be turned off on start

◆ UseRange

bool MoreMountains.Feedbacks.MMF_Image.UseRange = false

whether or not to broadcast a range to only affect certain shakers

Property Documentation

◆ FeedbackDuration

override float? MoreMountains.Feedbacks.MMF_Image.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the Image, or 0 if instant

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_Image.HasChannel
get

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