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

This feedback allows you to destroy a target gameobject, either via Destroy, DestroyImmediate, or SetActive:False. More...

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

Public Types

enum  Modes { Destroy , DestroyImmediate , Disable }
 the possible ways to destroy an object More...

Public Attributes

GameObject TargetGameObject
 the gameobject we want to change the active state of
List< GameObject > ExtraTargetGameObjects
 the optional list of extra gameobjects we want to change the active state of
Modes Mode
 the selected destruction mode

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 AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target)
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change the state of our Behaviour if needed.
virtual void ProceedWithDestruction (GameObject go)
 Changes the status of the Behaviour.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.

Protected Attributes

bool _initialActiveState

Properties

override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback

Additional Inherited Members

Detailed Description

This feedback allows you to destroy a target gameobject, either via Destroy, DestroyImmediate, or SetActive:False.

Member Enumeration Documentation

◆ Modes

the possible ways to destroy an object

Enumerator
Destroy 
DestroyImmediate 
Disable 

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_Destroy.AutomateTargetAcquisition ( )
protectedvirtual

A method meant to be implemented per feedback letting you specify what happens (usually setting a target)

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

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

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

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

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

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

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ ProceedWithDestruction()

virtual void MoreMountains.Feedbacks.MMF_Destroy.ProceedWithDestruction ( GameObject go)
protectedvirtual

Changes the status of the Behaviour.

Parameters
state

Member Data Documentation

◆ _initialActiveState

bool MoreMountains.Feedbacks.MMF_Destroy._initialActiveState
protected

◆ ExtraTargetGameObjects

List<GameObject> MoreMountains.Feedbacks.MMF_Destroy.ExtraTargetGameObjects

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

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Destroy.FeedbackTypeAuthorized = true
static

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

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Destroy.Mode

the selected destruction mode

◆ TargetGameObject

GameObject MoreMountains.Feedbacks.MMF_Destroy.TargetGameObject

the gameobject we want to change the active state of

Property Documentation

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_Destroy.HasAutomatedTargetAcquisition
get

sets the inspector color for this feedback


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