private void SceneAddPlayer(MsgScenePlayer msgPlayer) { MsgScenePosRot posRot = msgPlayer.scene_pos_rot; GameObject player = Instantiate( playerPrefab, new Vector3(posRot.pos_x, posRot.pos_y, posRot.pos_z), Quaternion.identity); player.transform.eulerAngles = new Vector3(posRot.rot_x, posRot.rot_y, posRot.rot_z); SceneData.AddPlayer(msgPlayer, player); }