C# Class RemoteTech.RTCore

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Public Methods

Method 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

Method 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 method

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.
return void

FixedUpdate() public method

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
return void

OnDestroy() public method

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

OnGUI() public method

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
return void

Start() public method

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

UiOff() public method

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

UiOn() public method

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

Update() public method

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
return void