| ResourcePoolTSource, TArgsChange Method |
Changes the resource amount by delta.
Namespace:
Archon.SwissArmyLib.ResourceSystem
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax protected virtual float Change(
float delta,
TSource source,
TArgs args,
bool forced = false
)
Request Example
View SourceParameters
- delta
- Type: SystemSingle
The delta to apply. - source
- Type: TSource
The source of the change. - args
- Type: TArgs
Optional args that will be passed to listeners. - forced (Optional)
- Type: SystemBoolean
Controls whether to force the change, despite modifications by listeners.
Return Value
Type:
SingleThe resulting change in the pool.
See Also