コード例 #1
0
        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);
        }
コード例 #2
0
 private void OnStateReceived(StateSyncMessage message)
 {
     Debug.Log("[HOLONET] - Received Object State Snapshot.");
     roomStateToApply = message.roomState;
 }