A decorative class used to make background elements jump
More...
|
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...
|
|
A decorative class used to make background elements jump
◆ 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
-
◆ Start()
virtual void MoreMountains.TopDownEngine.ExplodudesDecoration.Start |
( |
| ) |
|
|
protectedvirtual |
On start we grab our rigidbody
◆ _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 |
◆ 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: