ActionAdventureKit 1.5.4
|
special ChangingResourceValue that adds an effect when it is full and removes it when empty
typically ChangingResourceValue.Rate should be negative so the value empties on its own after being raised by some outside source
Public Member Functions | |
override bool | Change (float value, Object source=null) |
override bool | ResetValue () |
Public Member Functions inherited from AdventureCore.ResourceValue | |
virtual bool | Set (float value, Object source=null) |
virtual void | SetMaximum (float value, Object source=null) |
override string | ToString () |
Public Attributes | |
EffectPool | EffectPool |
EffectType | EffectType |
Public Attributes inherited from AdventureCore.ChangingResourceValue | |
float | Rate |
float | Lag |
Public Attributes inherited from AdventureCore.ResourceValue | |
ResourceType | Type |
float | Maximum |
float | Value |
UnityEvent< float > | Changed |
UnityEvent< float > | MaximumChanged |
Protected Member Functions | |
override float | applyCaps (float value) |
override void | onValueChanged () |
Protected Member Functions inherited from AdventureCore.ChangingResourceValue | |
override void | Update () |
Protected Member Functions inherited from AdventureCore.ResourceValue | |
virtual void | Awake () |
virtual void | onMaximumChanged () |
Protected Attributes | |
EffectBase | _effect |
Properties | |
bool | IsEffectActive [get] |
Properties inherited from AdventureCore.ResourceValue | |
float | Ratio [get] |
ResourcePool | Pool [get, set] |
|
inlineprotectedvirtual |
Reimplemented from AdventureCore.ResourceValue.
|
inlinevirtual |
Reimplemented from AdventureCore.ChangingResourceValue.
|
inlineprotectedvirtual |
Reimplemented from AdventureCore.ResourceValue.
|
inlinevirtual |
Reimplemented from AdventureCore.ResourceValue.