docs.unity3d.com
    Show / Hide Table of Contents

    Class TimerComponent

    Inheritance
    Object
    TimerComponent
    Namespace: Unity.Reflect.ActorFramework
    Syntax
    public class TimerComponent : IAsyncComponent, IRunnableComponent

    Constructors

    TimerComponent(CancellationToken)

    Declaration
    public TimerComponent(CancellationToken globalToken)
    Parameters
    Type Name Description
    CancellationToken globalToken

    Methods

    DelayedExecute(TimeSpan, Action)

    Declaration
    public void DelayedExecute(TimeSpan delay, Action callback)
    Parameters
    Type Name Description
    TimeSpan delay
    Action callback

    Tick(TimeSpan)

    Declaration
    public TickResult Tick(TimeSpan endTime)
    Parameters
    Type Name Description
    TimeSpan endTime
    Returns
    Type Description
    TickResult
    Implements
    IRunnableComponent.Tick(TimeSpan)

    WaitAsync(CancellationToken)

    Declaration
    public async Task<WaitResult> WaitAsync(CancellationToken token)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<WaitResult>
    Implements
    IAsyncComponent.WaitAsync(CancellationToken)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023