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

This feedback allows you to trigger a target MMFeedbacks, or any MMFeedbacks on the specified Channel within a certain range. You'll need an MMFeedbacksShaker on them. More...

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

Public Types

enum  Modes { PlayFeedbacksInArea , PlayTargetFeedbacks }
 

Public Attributes

Modes Mode = Modes.PlayFeedbacksInArea
 the selected mode for this feedback More...
 
MMFeedbacks TargetFeedbacks
 a specific MMFeedbacks / MMF_Player to play More...
 
bool UseRange = false
 whether or not to use a range 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...
 

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 light off if needed More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we turn our light on and start an over time coroutine if needed More...
 

Properties

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

Additional Inherited Members

Detailed Description

This feedback allows you to trigger a target MMFeedbacks, or any MMFeedbacks on the specified Channel within a certain range. You'll need an MMFeedbacksShaker on them.

Member Enumeration Documentation

◆ Modes

Enumerator
PlayFeedbacksInArea 
PlayTargetFeedbacks 

Member Function Documentation

◆ CustomInitialization()

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

On init we turn the light off if needed

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

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

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ EventOriginTransform

Transform MoreMountains.Feedbacks.MMF_Feedbacks.EventOriginTransform

the transform to use to broadcast the event as origin point

◆ EventRange

float MoreMountains.Feedbacks.MMF_Feedbacks.EventRange = 100f

the range of the event, in units

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Feedbacks.FeedbackTypeAuthorized = true
static

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

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Feedbacks.Mode = Modes.PlayFeedbacksInArea

the selected mode for this feedback

◆ TargetFeedbacks

MMFeedbacks MoreMountains.Feedbacks.MMF_Feedbacks.TargetFeedbacks

a specific MMFeedbacks / MMF_Player to play

◆ UseRange

bool MoreMountains.Feedbacks.MMF_Feedbacks.UseRange = false

whether or not to use a range

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_Feedbacks.FeedbackDuration
get

sets the inspector color for this feedback

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

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_Feedbacks.HasChannel
get

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