Corgi Engine v9.4
Loading...
Searching...
No Matches
MoreMountains.CorgiEngine.Coin Class Reference

Coin manager. More...

Inheritance diagram for MoreMountains.CorgiEngine.Coin:
MoreMountains.CorgiEngine.PickableItem MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Attributes

int PointsToAdd = 10
 The amount of points to add when collected.
Public Attributes inherited from MoreMountains.CorgiEngine.PickableItem
MMFeedbacks PickFeedbacks
 the MMFeedback to play when the item gets picked
bool DisableObjectOnPick = true
 if this is set to true, the object will be disabled when picked
bool DisableRendererOnPick = false
 if this is true, disable the object's renderer on pick
bool DisableColliderOnPick = false
 if this is true, disable the object's collider on pick
bool DisableTargetObjectOnPick = false
 if this is set to true, the target object will be disabled when picked
GameObject TargetObjectToDisable
 the object to disable on pick if DisableTargetObjectOnPick is true
float TargetObjectDisableDelay = 1f
 the time in seconds before disabling the target if DisableTargetObjectOnPick is true

Protected Member Functions

override void Pick (GameObject picker)
 Triggered when something collides with the coin.
Protected Member Functions inherited from MoreMountains.CorgiEngine.PickableItem
virtual void Start ()
 On Start we grab and store our components.
virtual IEnumerator DisableTargetObjectCoroutine ()
virtual bool CheckIfPickable ()
 Checks if the object is pickable.
virtual void Effects ()
 Triggers the various pick effects.

Additional Inherited Members

Public Member Functions inherited from MoreMountains.CorgiEngine.PickableItem
virtual void OnTriggerEnter2D (Collider2D collider)
 Triggered when something collides with the coin.
virtual void PickItem (GameObject picker)
 Check if the item is pickable and if yes, proceeds with triggering the effects and disabling the object.
Protected Attributes inherited from MoreMountains.CorgiEngine.PickableItem
Collider2D _collider
Collider2D _pickingCollider
Renderer _renderer
Character _character = null
bool _pickable = false
ItemPicker _itemPicker = null
GameObject _collidingObject
AutoRespawn _autoRespawn

Detailed Description

Coin manager.

Member Function Documentation

◆ Pick()

override void MoreMountains.CorgiEngine.Coin.Pick ( GameObject picker)
protectedvirtual

Triggered when something collides with the coin.

Parameters
colliderOther.

Reimplemented from MoreMountains.CorgiEngine.PickableItem.

Member Data Documentation

◆ PointsToAdd

int MoreMountains.CorgiEngine.Coin.PointsToAdd = 10

The amount of points to add when collected.


The documentation for this class was generated from the following file:
  • Assets/CorgiEngine/Common/Scripts/Items/Coin.cs