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

Add this class to an object and it'll add points when collected. Note that you'll need a trigger boxcollider on it More...

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

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

Detailed Description

Add this class to an object and it'll add points when collected. Note that you'll need a trigger boxcollider on it

Member Function Documentation

◆ ObjectPicked()

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

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

Reimplemented from MoreMountains.InfiniteRunnerEngine.PickableObject.

Member Data Documentation

◆ PointsToAdd

int MoreMountains.InfiniteRunnerEngine.Coin.PointsToAdd = 10

The amount of points to add when collected.


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