Corgi Engine
v9.0
|
A pickable one up, that gives you one extra life if picked up More...
Public Attributes | |
int | NumberOfAddedLives |
the amount of lives that should be added when picking this item More... | |
int | NumberOfAddedEmptyContainers |
the number of empty containers to add when picking this item More... | |
bool | FillAddedContainers = false |
whether to fill the additional containers or not More... | |
bool | FillAllContainers = false |
whether to fill all containers or not 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 Member Functions | |
override void | Pick (GameObject picker) |
What happens when the object gets picked More... | |
Protected Member Functions inherited from MoreMountains.CorgiEngine.PickableItem | |
virtual void | Start () |
On Start we grab and store our components More... | |
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... | |
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 |
A pickable one up, that gives you one extra life if picked up
|
protectedvirtual |
What happens when the object gets picked
Reimplemented from MoreMountains.CorgiEngine.PickableItem.
bool MoreMountains.CorgiEngine.PickableOneUp.FillAddedContainers = false |
whether to fill the additional containers or not
bool MoreMountains.CorgiEngine.PickableOneUp.FillAllContainers = false |
whether to fill all containers or not
int MoreMountains.CorgiEngine.PickableOneUp.NumberOfAddedEmptyContainers |
the number of empty containers to add when picking this item
int MoreMountains.CorgiEngine.PickableOneUp.NumberOfAddedLives |
the amount of lives that should be added when picking this item