docs.unity.cn
    Show / Hide Table of Contents

    Class CommandScheduler

    Class CommandScheduler.

    Inheritance
    Object
    CommandScheduler
    Namespace: UnityEngine.Industrial.Configuring.Commands
    Syntax
    public class CommandScheduler

    Properties

    IsRunning

    Gets a value indicating whether this instance is running.

    Declaration
    public bool IsRunning { get; }
    Property Value
    Type Description
    Boolean

    true if this instance is running; otherwise, false.

    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()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021