A decorative class used to make background elements jump.
More...
|
| 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.
|
| void | OnMMEvent (T eventType) |
|
| 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
|
|
| 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.
|
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: