Class SlowTaskModule | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class SlowTaskModule

    Manages tasks that run at regular intervals

    Inheritance
    Object
    ScriptableSettingsBase
    ScriptableSettingsBase<SlowTaskModule>
    ScriptableSettings<SlowTaskModule>
    SlowTaskModule
    Inherited Members
    ScriptableSettings<SlowTaskModule>.instance
    ScriptableSettingsBase<SlowTaskModule>.k_HasCustomPath
    ScriptableSettingsBase<SlowTaskModule>.s_Instance
    ScriptableSettingsBase<SlowTaskModule>.Save(String)
    ScriptableSettingsBase<SlowTaskModule>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: Unity.MARS
    Syntax
    public class SlowTaskModule : ScriptableSettings<SlowTaskModule>, IModuleBehaviorCallbacks, IModuleMarsUpdate, IModule, IProvidesSlowTasks, IFunctionalityProvider

    Methods

    AddMarsTimeSlowTask(Action, Single, Boolean)

    Declaration
    public bool AddMarsTimeSlowTask(Action action, float sleepTime, bool replace = false)
    Parameters
    Type Name Description
    Action action
    Single sleepTime
    Boolean replace
    Returns
    Type Description
    Boolean
    Implements
    IProvidesSlowTasks.AddMarsTimeSlowTask(Action, Single, Boolean)

    AddSlowTask(Action, Single, Boolean)

    Declaration
    public bool AddSlowTask(Action action, float sleepTime, bool replace = false)
    Parameters
    Type Name Description
    Action action
    Single sleepTime
    Boolean replace
    Returns
    Type Description
    Boolean
    Implements
    IProvidesSlowTasks.AddSlowTask(Action, Single, Boolean)

    ClearTasks()

    Declaration
    public void ClearTasks()

    ConnectSubscriber(Object)

    Declaration
    public void ConnectSubscriber(object obj)
    Parameters
    Type Name Description
    Object obj
    Implements
    IFunctionalityProvider.ConnectSubscriber(Object)

    LoadModule()

    Declaration
    public void LoadModule()
    Implements
    IModule.LoadModule()

    LoadProvider()

    Declaration
    public void LoadProvider()
    Implements
    IFunctionalityProvider.LoadProvider()

    OnBehaviorAwake()

    Declaration
    public void OnBehaviorAwake()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorAwake()

    OnBehaviorDestroy()

    Declaration
    public void OnBehaviorDestroy()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    OnBehaviorDisable()

    Declaration
    public void OnBehaviorDisable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDisable()

    OnBehaviorEnable()

    Declaration
    public void OnBehaviorEnable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorEnable()

    OnBehaviorStart()

    Declaration
    public void OnBehaviorStart()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorStart()

    OnBehaviorUpdate()

    Declaration
    public void OnBehaviorUpdate()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    OnMarsUpdate()

    Declaration
    public void OnMarsUpdate()
    Implements
    IModuleMarsUpdate.OnMarsUpdate()

    RemoveMarsTimeSlowTask(Action)

    Declaration
    public bool RemoveMarsTimeSlowTask(Action task)
    Parameters
    Type Name Description
    Action task
    Returns
    Type Description
    Boolean
    Implements
    IProvidesSlowTasks.RemoveMarsTimeSlowTask(Action)

    RemoveSlowTask(Action)

    Declaration
    public bool RemoveSlowTask(Action task)
    Parameters
    Type Name Description
    Action task
    Returns
    Type Description
    Boolean
    Implements
    IProvidesSlowTasks.RemoveSlowTask(Action)

    UnloadModule()

    Declaration
    public void UnloadModule()
    Implements
    IModule.UnloadModule()

    UnloadProvider()

    Declaration
    public void UnloadProvider()
    Implements
    IFunctionalityProvider.UnloadProvider()
    Back to top
    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