CommunicationBridgeSetMultiplayerComponent Method

If the Multiplayer reference is null, set it to active Multiplayer component.

Example

C#
void OnEnable() => SetMultiplayerComponent();
SetMultiplayerComponent call it in OnEnable unless hidden.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
protected bool SetMultiplayerComponent(
	bool force = false
)

Parameters

force  Boolean  (Optional)
When set to true, it will ignore the current value of the Multiplayer reference

Return Value

Boolean
True when Multiplayer is not null.

See Also