C# Class BeardedManStudios.Network.Unity.MainThreadManager

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: drakelinglabs/unityarmada Class Usage Examples

Public Properties

Property Type Description
unityFixedUpdate UpdateEvent
unityUpdate UpdateEvent

Public Methods

Method Description
Create ( ) : void

This will create a main thread manager if one is not already created

Run ( System.Action action ) : void

Add a function to the list of functions to call on the main thread via the Update function

Private Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
HandleActions ( ) : void
Update ( ) : void

Method Details

Create() public static method

This will create a main thread manager if one is not already created
public static Create ( ) : void
return void

Run() public static method

Add a function to the list of functions to call on the main thread via the Update function
public static Run ( System.Action action ) : void
action System.Action The method that is to be run on the main thread
return void

Property Details

unityFixedUpdate public static property

public static UpdateEvent unityFixedUpdate
return UpdateEvent

unityUpdate public static property

public static UpdateEvent unityUpdate
return UpdateEvent