C# Class RemoteTech.RTCore

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Méthodes publiques

Méthode Description
AddOnceOnFrameUpdate ( System.Action action ) : void

Prevent duplicate calls for the OnFrameUpdate event.

FixedUpdate ( ) : void

Called by the Unity engine during the Physics phase. Note that FixedUpdate() is called before the internal engine physics update. This function is often called more frequently than Update().

OnDestroy ( ) : void

Called by the Unity engine during the Decommissioning phase of the Engine. This is used to clean up everything before quiting.

OnGUI ( ) : void

Called by the Unity engine during the GUI rendering phase. Note that OnGUI() is called multiple times per frame in response to GUI events. The Layout and Repaint events are processed first, followed by a Layout and keyboard/mouse event for each input event.

Start ( ) : void

Called by Unity engine during initialization phase. Only ever called once.

UiOff ( ) : void

F2 GUI Hiding functionality; called when the UI must be hidden.

UiOn ( ) : void

F2 GUI Hiding functionality; called when the UI must be displayed.

Update ( ) : void

Called by the Unity engine during the game logic phase. This function is called once per frame. It is the main workhorse function for frame updates.

Private Methods

Méthode Description
GetActivatedGroup ( ) : IEnumerable
GetLocks ( ) : void

Acquire RemoteTech UI locks (disable usage of UI buttons).

ReleaseLocks ( ) : void

Release RemoteTech UI locks (enable usage of UI buttons).

Method Details

AddOnceOnFrameUpdate() public méthode

Prevent duplicate calls for the OnFrameUpdate event.
public AddOnceOnFrameUpdate ( System.Action action ) : void
action System.Action The action to be added to the OnFrameUpdate event.
Résultat void

FixedUpdate() public méthode

Called by the Unity engine during the Physics phase. Note that FixedUpdate() is called before the internal engine physics update. This function is often called more frequently than Update().
public FixedUpdate ( ) : void
Résultat void

OnDestroy() public méthode

Called by the Unity engine during the Decommissioning phase of the Engine. This is used to clean up everything before quiting.
public OnDestroy ( ) : void
Résultat void

OnGUI() public méthode

Called by the Unity engine during the GUI rendering phase. Note that OnGUI() is called multiple times per frame in response to GUI events. The Layout and Repaint events are processed first, followed by a Layout and keyboard/mouse event for each input event.
public OnGUI ( ) : void
Résultat void

Start() public méthode

Called by Unity engine during initialization phase. Only ever called once.
public Start ( ) : void
Résultat void

UiOff() public méthode

F2 GUI Hiding functionality; called when the UI must be hidden.
public UiOff ( ) : void
Résultat void

UiOn() public méthode

F2 GUI Hiding functionality; called when the UI must be displayed.
public UiOn ( ) : void
Résultat void

Update() public méthode

Called by the Unity engine during the game logic phase. This function is called once per frame. It is the main workhorse function for frame updates.
public Update ( ) : void
Résultat void