Infinite Runner Engine v1.9
|
Add this class to an object and it'll modify the level speed when picked Note that you'll need a trigger boxcollider on it More...
Public Attributes | |
float | SpeedFactor =2f |
float | EffectDuration =5f |
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 modify the level speed when picked 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.
float MoreMountains.InfiniteRunnerEngine.SpeedBonus.EffectDuration =5f |
float MoreMountains.InfiniteRunnerEngine.SpeedBonus.SpeedFactor =2f |