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

Use this picker to create a new resistance on the character that picks it, or to enable/disable an existing one More...

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

Public Types

enum  Modes { Modes.Create, Modes.ActivateByLabel, Modes.DisableByLabel }
 

Public Attributes

Modes Mode = Modes.ActivateByLabel
 The chosen mode to interact with resistance, either creating one, activating one or disabling one. More...
 
string TargetLabel = "SomeResistance"
 If activating or disabling by label, the exact label of the target resistance. More...
 
string NewResistanceNodeName = "NewResistance"
 in create mode, the name of the new game object to create to host the new resistance More...
 
DamageResistance DamageResistanceToGive
 in create mode, a DamageResistance to copy and give to the new node. Usually you'll want to create a new DamageResistance component on your picker, and drag it in this slot More...
 
bool OnlyForPlayerCharacter = true
 if this is true, only player characters can pick this up 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)
 Triggered when something collides with the stimpack 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
 

Detailed Description

Use this picker to create a new resistance on the character that picks it, or to enable/disable an existing one

Member Enumeration Documentation

◆ Modes

Enumerator
Create 
ActivateByLabel 
DisableByLabel 

Member Function Documentation

◆ Pick()

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

Triggered when something collides with the stimpack

Parameters
colliderOther.

Reimplemented from MoreMountains.CorgiEngine.PickableItem.

Member Data Documentation

◆ DamageResistanceToGive

DamageResistance MoreMountains.CorgiEngine.PickableDamageResistance.DamageResistanceToGive

in create mode, a DamageResistance to copy and give to the new node. Usually you'll want to create a new DamageResistance component on your picker, and drag it in this slot

◆ Mode

Modes MoreMountains.CorgiEngine.PickableDamageResistance.Mode = Modes.ActivateByLabel

The chosen mode to interact with resistance, either creating one, activating one or disabling one.

◆ NewResistanceNodeName

string MoreMountains.CorgiEngine.PickableDamageResistance.NewResistanceNodeName = "NewResistance"

in create mode, the name of the new game object to create to host the new resistance

◆ OnlyForPlayerCharacter

bool MoreMountains.CorgiEngine.PickableDamageResistance.OnlyForPlayerCharacter = true

if this is true, only player characters can pick this up

◆ TargetLabel

string MoreMountains.CorgiEngine.PickableDamageResistance.TargetLabel = "SomeResistance"

If activating or disabling by label, the exact label of the target resistance.


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