| | |
| | |
|
| | | Vector3 _destPosition = new Vector3((vNetData.DestPosX - GA_Hero.MapOffset.x) * .5f, _actor.Pos.y, (vNetData.DestPosY - GA_Hero.MapOffset.z) * .5f);
|
| | |
|
| | |
|
| | | if (_actor is GA_Pet)
|
| | | {
|
| | | if (MathUtility.DistanceSqrtXZ(_destPosition, _actor.Pos) < 2f)
|
| | | {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (_actor.ActorType == GameObjType.gotPlayer)
|
| | | {
|
| | | GActorPlayerBase _player = _actor as GActorPlayerBase;
|
| | |
| | | _player.MoveToPosition(_destPosition);
|
| | | }
|
| | |
|
| | | if(vNetData.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | if (vNetData.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | MapTransferUtility.Instance.Clear();
|
| | | }
|