Represents a class to set up easily a custom action as a system update.
public sealed class ActionSystem<T> :
DefaultEcs.System.ISystem<T>,
System.IDisposableT
The type of the object used as state to update the system.
Inheritance System.Object 🡒 ActionSystem
Implements DefaultEcs.System.ISystem<T>, System.IDisposable
| Constructors | |
|---|---|
| ActionSystem(Action<T>) | Initialises a new instance of the ActionSystem<T> class with the given System.Action<>. |
| Properties | |
|---|---|
| IsEnabled | Gets or sets whether the current ISystem<T> instance should update or not. |
| Methods | |
|---|---|
| Dispose() | Does nothing. |
| Update(T) | Updates the system once. Does nothing if IsEnabled is false. |