Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | List of all members
MoreMountains.InfiniteRunnerEngine.SpeedBonus Class Reference

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...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.SpeedBonus:
MoreMountains.InfiniteRunnerEngine.PickableObject

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...
 

Detailed Description

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

Member Function Documentation

◆ ObjectPicked()

override void MoreMountains.InfiniteRunnerEngine.SpeedBonus.ObjectPicked ( )
protectedvirtual

Override this to describe what happens when that object gets picked.

Reimplemented from MoreMountains.InfiniteRunnerEngine.PickableObject.

Member Data Documentation

◆ EffectDuration

float MoreMountains.InfiniteRunnerEngine.SpeedBonus.EffectDuration =5f

◆ SpeedFactor

float MoreMountains.InfiniteRunnerEngine.SpeedBonus.SpeedFactor =2f

The documentation for this class was generated from the following file: