Infinite Runner Engine v1.9
|
Add this class to an object and it'll add points when collected. Note that you'll need a trigger boxcollider on it More...
Public Attributes | |
int | PointsToAdd = 10 |
The amount of points to add when collected. More... | |
Public Attributes inherited from MoreMountains.InfiniteRunnerEngine.PickableObject | |
GameObject | PickEffect |
The effect to instantiate when the coin is hit. More... | |
AudioClip | PickSoundFx |
The sound effect to play when the coin is hit. More... | |
Protected Member Functions | |
override void | ObjectPicked () |
Override this to describe what happens when that object gets picked. More... | |
Protected Member Functions inherited from MoreMountains.InfiniteRunnerEngine.PickableObject | |
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... | |
Add this class to an object and it'll add points when collected. Note that you'll need a trigger boxcollider on it
|
protectedvirtual |
Override this to describe what happens when that object gets picked.
Reimplemented from MoreMountains.InfiniteRunnerEngine.PickableObject.
int MoreMountains.InfiniteRunnerEngine.Coin.PointsToAdd = 10 |
The amount of points to add when collected.