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

This feedback will play the associated particles system on play, and stop it on stop More...

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

Public Types

enum  Modes { Play , Stop , Pause }
 sets the inspector color for this feedback More...
 

Public Attributes

Modes Mode = Modes.Play
 whether to Play, Stop or Pause the target particle system when that feedback is played More...
 
ParticleSystem BoundParticleSystem
 the particle system to play with this feedback More...
 
List< ParticleSystem > RandomParticleSystems
 a list of (optional) particle systems More...
 
bool MoveToPosition = false
 if this is true, the particles will be moved to the position passed in parameters More...
 
bool ActivateOnPlay = false
 if this is true, the particle system's object will be set active on play 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 stop our particle system More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play we play our particle system More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Stop, stops the particle system More...
 
override void CustomReset ()
 On Reset, stops the particle system More...
 
virtual void PlayParticles (Vector3 position)
 Plays a particle system More...
 
virtual void StopParticles ()
 Stops all particle systems More...
 

Additional Inherited Members

Detailed Description

This feedback will play the associated particles system on play, and stop it on stop

Member Enumeration Documentation

◆ Modes

sets the inspector color for this feedback

Enumerator
Play 
Stop 
Pause 

Member Function Documentation

◆ CustomInitialization()

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

On init we stop our particle system

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

On play we play our particle system

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomReset()

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

On Reset, stops the particle system

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On Stop, stops the particle system

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ PlayParticles()

virtual void MoreMountains.Feedbacks.MMF_Particles.PlayParticles ( Vector3  position)
protectedvirtual

Plays a particle system

Parameters
position

◆ StopParticles()

virtual void MoreMountains.Feedbacks.MMF_Particles.StopParticles ( )
protectedvirtual

Stops all particle systems

Member Data Documentation

◆ ActivateOnPlay

bool MoreMountains.Feedbacks.MMF_Particles.ActivateOnPlay = false

if this is true, the particle system's object will be set active on play

◆ BoundParticleSystem

ParticleSystem MoreMountains.Feedbacks.MMF_Particles.BoundParticleSystem

the particle system to play with this feedback

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Particles.FeedbackTypeAuthorized = true
static

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

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Particles.Mode = Modes.Play

whether to Play, Stop or Pause the target particle system when that feedback is played

◆ MoveToPosition

bool MoreMountains.Feedbacks.MMF_Particles.MoveToPosition = false

if this is true, the particles will be moved to the position passed in parameters

◆ RandomParticleSystems

List<ParticleSystem> MoreMountains.Feedbacks.MMF_Particles.RandomParticleSystems

a list of (optional) particle systems


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