CommunicationBridgeSetMultiplayerComponent Method

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

Definition

Namespace: Alteruna.Multiplayer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
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.

Remarks

C#
void OnEnable() => SetMultiplayerComponent();

See Also