Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_Enable Class Reference

Turns an object active or inactive at the various stages of the feedback. More...

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

Public Types

enum  PossibleStates { Enabled , Disabled , Toggle }
 sets the inspector color for this feedback More...

Public Attributes

Behaviour TargetBehaviour
 the gameobject we want to change the active state of
List< Behaviour > ExtraTargetBehaviours
 a list of extra gameobjects we want to change the active state of
bool SetStateOnInit = false
 whether or not we should alter the state of the target object on init
PossibleStates StateOnInit = PossibleStates.Disabled
 how to change the state on init
bool SetStateOnPlay = false
 whether or not we should alter the state of the target object on play
PossibleStates StateOnPlay = PossibleStates.Disabled
 how to change the state on play
bool SetStateOnStop = false
 whether or not we should alter the state of the target object on stop
PossibleStates StateOnStop = PossibleStates.Disabled
 how to change the state on stop
bool SetStateOnReset = false
 whether or not we should alter the state of the target object on reset
PossibleStates StateOnReset = PossibleStates.Disabled
 how to change the state on reset

Static Public Attributes

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

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we change the state of our Behaviour if needed.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change the state of our Behaviour if needed.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On Stop we change the state of our Behaviour if needed.
override void CustomReset ()
 On Reset we change the state of our Behaviour if needed.
virtual void SetStatus (PossibleStates state)
 Changes the status of the Behaviour.
virtual void SetStatus (PossibleStates state, Behaviour target)
 Sets the specified status on the target Behaviour.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.

Protected Attributes

bool _initialState

Additional Inherited Members

Detailed Description

Turns an object active or inactive at the various stages of the feedback.

Member Enumeration Documentation

◆ PossibleStates

sets the inspector color for this feedback

the possible effects the feedback can have on the target object's status

Enumerator
Enabled 
Disabled 
Toggle 

Member Function Documentation

◆ CustomInitialization()

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

On init we change the state of our Behaviour if needed.

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_Enable.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On Play we change the state of our Behaviour if needed.

Parameters
position
feedbacksIntensity

◆ CustomReset()

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

On Reset we change the state of our Behaviour if needed.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_Enable.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we put our object back at its initial position.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On Stop we change the state of our Behaviour if needed.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ SetStatus() [1/2]

virtual void MoreMountains.Feedbacks.MMF_Enable.SetStatus ( PossibleStates state)
protectedvirtual

Changes the status of the Behaviour.

Parameters
state

◆ SetStatus() [2/2]

virtual void MoreMountains.Feedbacks.MMF_Enable.SetStatus ( PossibleStates state,
Behaviour target )
protectedvirtual

Sets the specified status on the target Behaviour.

Parameters
state
target

Member Data Documentation

◆ _initialState

bool MoreMountains.Feedbacks.MMF_Enable._initialState
protected

◆ ExtraTargetBehaviours

List<Behaviour> MoreMountains.Feedbacks.MMF_Enable.ExtraTargetBehaviours

a list of extra gameobjects we want to change the active state of

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Enable.FeedbackTypeAuthorized = true
static

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

◆ SetStateOnInit

bool MoreMountains.Feedbacks.MMF_Enable.SetStateOnInit = false

whether or not we should alter the state of the target object on init

◆ SetStateOnPlay

bool MoreMountains.Feedbacks.MMF_Enable.SetStateOnPlay = false

whether or not we should alter the state of the target object on play

◆ SetStateOnReset

bool MoreMountains.Feedbacks.MMF_Enable.SetStateOnReset = false

whether or not we should alter the state of the target object on reset

◆ SetStateOnStop

bool MoreMountains.Feedbacks.MMF_Enable.SetStateOnStop = false

whether or not we should alter the state of the target object on stop

◆ StateOnInit

PossibleStates MoreMountains.Feedbacks.MMF_Enable.StateOnInit = PossibleStates.Disabled

how to change the state on init

◆ StateOnPlay

PossibleStates MoreMountains.Feedbacks.MMF_Enable.StateOnPlay = PossibleStates.Disabled

how to change the state on play

◆ StateOnReset

PossibleStates MoreMountains.Feedbacks.MMF_Enable.StateOnReset = PossibleStates.Disabled

how to change the state on reset

◆ StateOnStop

PossibleStates MoreMountains.Feedbacks.MMF_Enable.StateOnStop = PossibleStates.Disabled

how to change the state on stop

◆ TargetBehaviour

Behaviour MoreMountains.Feedbacks.MMF_Enable.TargetBehaviour

the gameobject we want to change the active state of


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMFeedbacks/MMFeedbacks/Feedbacks/MMF_Enable.cs