CommunicationBridgeSetMultiplayerComponent Method
If the Multiplayer reference is null, set it to active MultiplayerManager component.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
protected bool SetMultiplayerComponent(
bool force = false
)
- force Boolean (Optional)
- When set to true, it will ignore the current value of the Multiplayer reference
BooleanTrue when Multiplayer is not null.
void OnEnable() => SetMultiplayerComponent();