TopDown Engine v4.5
Loading...
Searching...
No Matches
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< T > MoreMountains.Tools.MMMonoBehaviour MoreMountains.Tools.MMEventListenerBase

Public Member Functions

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

Public Attributes

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

Protected Member Functions

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

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: