public void OtherSyncMove(GameMsg msg) { OtherSyncMove otherSyncMove = msg.otherSyncMove; MyVector3 myPos = otherSyncMove.pos; MyVector3 myRot = otherSyncMove.rot; Vector3 pos = new Vector3(myPos.x, myPos.y, myPos.z); Vector3 rot = new Vector3(myRot.x, myRot.y, myRot.z); if (battleMgr == null) { return; } RemoteController remoteController = (RemoteController)battleMgr.GetController((RoleType)otherSyncMove.roleType); remoteController.gameObject.transform.position = pos; remoteController.UpdateModelAction(rot); //PECommon.Log((RoleType)otherSyncMove.roleType + "移动了位置:" + pos + "方向:" + rot); }