C# Class Foundation.Tasks.TaskManager

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: NVentimiglia/Unity3d-Foundation Class Usage Examples

Protected Properties

Property Type Description
IsApplicationQuit bool
PendingActions List
PendingAdd List
PendingCoroutineInfo List
PendingLogs List
PendingRemove List

Public Methods

Method Description
ConfirmInit ( ) : void

Confirms the instance is ready for use

Log ( LogCommand m ) : void

A thread safe logger

RunOnMainThread ( System.Action action ) : void

Schedules the action to run on the main thread

StartRoutine ( IEnumerator coroutine ) : Coroutine

Scheduled the routine to run (on the main thread)

StartRoutine ( CoroutineCommand info ) : void

Scheduled the routine to run (on the main thread)

StopRoutine ( IEnumerator coroutine ) : void

Scheduled the routine to run (on the main thread)

WaitForSeconds ( int seconds ) : Coroutine

Scheduled the routine to run (on the main thread)

Protected Methods

Method Description
Awake ( ) : void
OnApplicationQuit ( ) : void
Update ( ) : void

Private Methods

Method Description
RunCoroutineInfo ( CoroutineCommand info ) : IEnumerator
WaitForSecondsInternal ( int seconds ) : IEnumerator
Write ( LogCommand m ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

ConfirmInit() public static method

Confirms the instance is ready for use
public static ConfirmInit ( ) : void
return void

Log() public static method

A thread safe logger
public static Log ( LogCommand m ) : void
m LogCommand
return void

OnApplicationQuit() protected method

protected OnApplicationQuit ( ) : void
return void

RunOnMainThread() public static method

Schedules the action to run on the main thread
public static RunOnMainThread ( System.Action action ) : void
action System.Action
return void

StartRoutine() public static method

Scheduled the routine to run (on the main thread)
public static StartRoutine ( IEnumerator coroutine ) : Coroutine
coroutine IEnumerator
return UnityEngine.Coroutine

StartRoutine() public static method

Scheduled the routine to run (on the main thread)
public static StartRoutine ( CoroutineCommand info ) : void
info CoroutineCommand
return void

StopRoutine() public static method

Scheduled the routine to run (on the main thread)
public static StopRoutine ( IEnumerator coroutine ) : void
coroutine IEnumerator
return void

Update() protected method

protected Update ( ) : void
return void

WaitForSeconds() public static method

Scheduled the routine to run (on the main thread)
public static WaitForSeconds ( int seconds ) : Coroutine
seconds int
return UnityEngine.Coroutine

Property Details

IsApplicationQuit protected static property

protected static bool IsApplicationQuit
return bool

PendingActions protected static property

protected static List PendingActions
return List

PendingAdd protected static property

protected static List PendingAdd
return List

PendingCoroutineInfo protected static property

protected static List PendingCoroutineInfo
return List

PendingLogs protected static property

protected static List PendingLogs
return List

PendingRemove protected static property

protected static List PendingRemove
return List