Пример #1
0
        protected override void OnPackageReceivedClient(byte[] package)
        {
            SpawnedPlayerInfo playerInfo = new SpawnedPlayerInfo();

            playerInfo.DeserializeInto(package);

            ServerRunner.SpawnPhysicalPlayer(playerInfo.PlayerID, playerInfo.Position, playerInfo.Rotation);
        }