C# Class BeardedManStudios.Network.Unity.MainThreadManager

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: drakelinglabs/unityarmada Class Usage Examples

Méthodes publiques

Свойство Type Description
unityFixedUpdate UpdateEvent
unityUpdate UpdateEvent

Méthodes publiques

Méthode 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

Méthode Description
Awake ( ) : void
FixedUpdate ( ) : void
HandleActions ( ) : void
Update ( ) : void

Method Details

Create() public static méthode

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

Run() public static méthode

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
Résultat void

Property Details

unityFixedUpdate public_oe static_oe property

public static UpdateEvent unityFixedUpdate
Résultat UpdateEvent

unityUpdate public_oe static_oe property

public static UpdateEvent unityUpdate
Résultat UpdateEvent