Exemple #1
0
        private void Update()
        {
            var msg = new PlayerPosMessage()
            {
                playerPos = this.transform.position
            };

            NetworkServer.SendToAll(msg);
        }
Exemple #2
0
 private void GetPlayerPosMessage(NetworkConnection conn, PlayerPosMessage message)
 {
 }
Exemple #3
0
 private void GetPlayerPosMessage(NetworkConnection conn, PlayerPosMessage message)
 {
     playerObject.transform.position = message.playerPos;
 }