Click or drag to resize

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
C#
protected virtual float Change(
	float delta,
	TSource source,
	TArgs args,
	bool forced = false
)
Request Example View Source

Parameters

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: Single
The resulting change in the pool.
See Also