/// <summary> /// 推送玩家移动 /// </summary> /// <param name="moveInfo"></param> private void PushPlayerMove(SCMoveLocation moveInfo) { if (_partyPlayerManager != null) { _partyPlayerManager.PushPlayerMove(moveInfo); } }
/// <summary> /// 推送玩家移动 /// </summary> /// <param name="moveInfo"></param> public void PushPlayerMove(SCMoveLocation moveInfo) { var playerCon = FindPlayer(moveInfo.Uid); if (playerCon != null) { playerCon.SetPlayerLocalPos(new Vector3(moveInfo.Xaxle, moveInfo.Yaxle, 0f)); } }