Corgi Engine  v8.8
MoreMountains.CorgiEngine.RetroStar Class Reference

A pickable star, that triggers an event if picked, and disables itself if it's been previously collected More...

Inheritance diagram for MoreMountains.CorgiEngine.RetroStar:
MoreMountains.CorgiEngine.Star MoreMountains.CorgiEngine.PickableItem MoreMountains.CorgiEngine.CorgiMonoBehaviour

Protected Member Functions

override void Start ()
 On Start we disable our star if needed More...
 
virtual void DisableIfAlreadyCollected ()
 Disables the star if it's already been collected in the past. More...
 
virtual void Disable ()
 Disable this star. More...
 
- Protected Member Functions inherited from MoreMountains.CorgiEngine.Star
override void Pick (GameObject picker)
 Triggered when something collides with the star More...
 
- Protected Member Functions inherited from MoreMountains.CorgiEngine.PickableItem
virtual IEnumerator DisableTargetObjectCoroutine ()
 
virtual bool CheckIfPickable ()
 Checks if the object is pickable. More...
 
virtual void Effects ()
 Triggers the various pick effects More...
 

Additional Inherited Members

- Public Member Functions inherited from MoreMountains.CorgiEngine.PickableItem
virtual void OnTriggerEnter2D (Collider2D collider)
 Triggered when something collides with the coin More...
 
virtual void PickItem (GameObject picker)
 Check if the item is pickable and if yes, proceeds with triggering the effects and disabling the object More...
 
- Public Attributes inherited from MoreMountains.CorgiEngine.Star
int StarID
 the ID of this star, used by the progress manager to know which one got unlocked More...
 
- Public Attributes inherited from MoreMountains.CorgiEngine.PickableItem
MMFeedbacks PickFeedbacks
 the MMFeedback to play when the item gets picked More...
 
bool DisableObjectOnPick = true
 if this is set to true, the object will be disabled when picked More...
 
bool DisableRendererOnPick = false
 if this is true, disable the object's renderer on pick More...
 
bool DisableColliderOnPick = false
 if this is true, disable the object's collider on pick More...
 
bool DisableTargetObjectOnPick = false
 if this is set to true, the target object will be disabled when picked More...
 
GameObject TargetObjectToDisable
 the object to disable on pick if DisableTargetObjectOnPick is true More...
 
float TargetObjectDisableDelay = 1f
 the time in seconds before disabling the target if DisableTargetObjectOnPick is true More...
 
- 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

A pickable star, that triggers an event if picked, and disables itself if it's been previously collected

Member Function Documentation

◆ Disable()

virtual void MoreMountains.CorgiEngine.RetroStar.Disable ( )
protectedvirtual

Disable this star.

◆ DisableIfAlreadyCollected()

virtual void MoreMountains.CorgiEngine.RetroStar.DisableIfAlreadyCollected ( )
protectedvirtual

Disables the star if it's already been collected in the past.

◆ Start()

override void MoreMountains.CorgiEngine.RetroStar.Start ( )
protectedvirtual

On Start we disable our star if needed

Reimplemented from MoreMountains.CorgiEngine.PickableItem.


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