Class CommandScheduler
Class CommandScheduler.
Namespace: Unity.Industrial.Forma.Core.Commands
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Commands", "Unity.Industrial.Configurator", null)]
[Obsolete]
public class CommandScheduler
Properties
IsRunning
Gets a value indicating whether this instance is running.
Declaration
public bool IsRunning { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Methods
ScheduleCommands(MonoBehaviour, CommandContext)
Schedule a set of actions to run If the scheduler is currently running it cancels all running commands and stops the coroutine
Declaration
public IEnumerator ScheduleCommands(MonoBehaviour target, CommandContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MonoBehaviour | target | Monobehaviour the coroutine is carried out to |
| CommandContext | context | Command context to pass to commands |
Returns
| Type | Description |
|---|---|
| IEnumerator | IEnumerator. |
Stop()
Stops coroutine
Declaration
public void Stop()