CommunicationBridgeSetMultiplayerComponent Method

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

Definition

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