public void SendStateToNewPlayer(HoloNetPlayer holonetPlayer) { if (!HoloNetPlayer.Local.isServer) { return; } Debug.Log("[HOLONET] - Sending Object State Snapshot."); HoloNetAppModule.instance.provider.SendMessage( StateSyncMessage.Create( PackAllStates()), holonetPlayer, true); }
private void OnStateReceived(StateSyncMessage message) { Debug.Log("[HOLONET] - Received Object State Snapshot."); roomStateToApply = message.roomState; }