Extend this class to make your own pickable objects. Look at Coin.cs for an example. Note that you need a boxcollider or boxcollider2D for this component to work.
More...
|
virtual void | OnTriggerEnter2D (Collider2D other) |
| Handles the collision if we're in 2D mode More...
|
|
virtual void | OnTriggerEnter (Collider other) |
| Handles the collision if we're in 3D mode More...
|
|
virtual void | TriggerEnter (GameObject collidingObject) |
| Triggered when something collides with the coin More...
|
|
virtual void | ObjectPicked () |
| Override this to describe what happens when that object gets picked. More...
|
|
Extend this class to make your own pickable objects. Look at Coin.cs for an example. Note that you need a boxcollider or boxcollider2D for this component to work.
◆ ObjectPicked()
virtual void MoreMountains.InfiniteRunnerEngine.PickableObject.ObjectPicked |
( |
| ) |
|
|
protectedvirtual |
◆ OnTriggerEnter()
virtual void MoreMountains.InfiniteRunnerEngine.PickableObject.OnTriggerEnter |
( |
Collider |
other | ) |
|
|
protectedvirtual |
Handles the collision if we're in 3D mode
- Parameters
-
other | the Collider that collides with our object |
◆ OnTriggerEnter2D()
virtual void MoreMountains.InfiniteRunnerEngine.PickableObject.OnTriggerEnter2D |
( |
Collider2D |
other | ) |
|
|
protectedvirtual |
Handles the collision if we're in 2D mode
- Parameters
-
other | the Collider2D that collides with our object |
◆ TriggerEnter()
virtual void MoreMountains.InfiniteRunnerEngine.PickableObject.TriggerEnter |
( |
GameObject |
collidingObject | ) |
|
|
protectedvirtual |
Triggered when something collides with the coin
- Parameters
-
◆ PickEffect
GameObject MoreMountains.InfiniteRunnerEngine.PickableObject.PickEffect |
The effect to instantiate when the coin is hit.
◆ PickSoundFx
AudioClip MoreMountains.InfiniteRunnerEngine.PickableObject.PickSoundFx |
The sound effect to play when the coin is hit.
The documentation for this class was generated from the following file: