TopDown Engine  v3.6
MoreMountains.TopDownEngine.ExplodudesDecoration Class Reference

A decorative class used to make background elements jump More...

Inheritance diagram for MoreMountains.TopDownEngine.ExplodudesDecoration:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMEventListener< MMGameEvent > MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void OnMMEvent (MMGameEvent gameEvent)
 When we get a bomb event we make our rb jump More...
 
virtual void Jump ()
 Adds a random force to the rb More...
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMGameEvent >
void OnMMEvent (T eventType)
 

Public Attributes

Vector3 MinForce
 the minimum force to apply to the background elements More...
 
Vector3 MaxForce
 the maximum force to apply to the background elements More...
 
bool JumpButton
 a test button More...
 

Protected Member Functions

virtual void Start ()
 On start we grab our rigidbody More...
 
virtual void OnEnable ()
 On enable we start listening for bomb events More...
 
virtual void OnDisable ()
 On disable we stop listening for bomb events More...
 

Protected Attributes

Rigidbody _rigidbody
 
Vector3 _force
 

Static Protected Attributes

const string eventName = "Bomb"
 

Detailed Description

A decorative class used to make background elements jump

Member Function Documentation

◆ Jump()

virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.Jump ( )
virtual

Adds a random force to the rb

◆ OnDisable()

virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.OnDisable ( )
protectedvirtual

On disable we stop listening for bomb events

◆ OnEnable()

virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.OnEnable ( )
protectedvirtual

On enable we start listening for bomb events

◆ OnMMEvent()

virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.OnMMEvent ( MMGameEvent  gameEvent)
virtual

When we get a bomb event we make our rb jump

Parameters
gameEvent

◆ Start()

virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.Start ( )
protectedvirtual

On start we grab our rigidbody

Member Data Documentation

◆ _force

Vector3 MoreMountains.TopDownEngine.ExplodudesDecoration._force
protected

◆ _rigidbody

Rigidbody MoreMountains.TopDownEngine.ExplodudesDecoration._rigidbody
protected

◆ eventName

const string MoreMountains.TopDownEngine.ExplodudesDecoration.eventName = "Bomb"
staticprotected

◆ JumpButton

bool MoreMountains.TopDownEngine.ExplodudesDecoration.JumpButton

a test button

◆ MaxForce

Vector3 MoreMountains.TopDownEngine.ExplodudesDecoration.MaxForce

the maximum force to apply to the background elements

◆ MinForce

Vector3 MoreMountains.TopDownEngine.ExplodudesDecoration.MinForce

the minimum force to apply to the background elements


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