| | |
| | | {
|
| | | m_Root.position = m_Pos;
|
| | | }
|
| | | //if (this is GA_Player)
|
| | | //if (this is GA_NpcFightNorm)
|
| | | //{
|
| | | // Debug.Log("坐标改变....." + value);
|
| | | // Debug.Log("坐标改变.....: " + value);
|
| | | //}
|
| | | }
|
| | | }
|
| | |
| | | m_Root.rotation = m_Rotation;
|
| | | }
|
| | |
|
| | | // if (ServerInstID == PlayerDatas.Instance.PlayerId)
|
| | | // {
|
| | | // System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace();
|
| | | // System.Diagnostics.StackFrame[] sfs = st.GetFrames();
|
| | | // string _content = "";
|
| | | // for (int u = 0; u < sfs.Length; ++u)
|
| | | // {
|
| | | // System.Reflection.MethodBase mb = sfs[u].GetMethod();
|
| | | // _content += string.Format("[CALL STACK][{0}]: {1}.{2}\r\n", u, mb.DeclaringType.FullName, mb.Name);
|
| | | // }
|
| | | // Debug.Log(_content);
|
| | | // }
|
| | | if (ServerInstID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | //System.Diagnostics.StackTrace st = new System.Diagnostics.StackTrace();
|
| | | //System.Diagnostics.StackFrame[] sfs = st.GetFrames();
|
| | | //string _content = "";
|
| | | //for (int u = 0; u < sfs.Length; ++u)
|
| | | //{
|
| | | // System.Reflection.MethodBase mb = sfs[u].GetMethod();
|
| | | // _content += string.Format("[CALL STACK][{0}]: {1}.{2}\r\n", u, mb.DeclaringType.FullName, mb.Name);
|
| | | //}
|
| | | //Debug.Log(_content);
|
| | |
|
| | | //Debug.Log("转向了.......: " + m_Forward);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | /// <param name="sPosY">服务端坐标Y</param>
|
| | | public void AdjustPos(ushort sPosX, ushort sPosY, bool chkNavmesh = true)
|
| | | {
|
| | | //Debug.LogFormat("sPosX: {0} - MapOffsetX: {1} = {2}", sPosX, GA_Hero.MapOffset.x, sPosX - (ushort)GA_Hero.MapOffset.x);
|
| | | //Debug.LogFormat("sPosY: {0} - MapOffsetY: {1} = {2}", sPosY, GA_Hero.MapOffset.z, sPosY - (ushort)GA_Hero.MapOffset.z);
|
| | |
|
| | | sPosX -= (ushort)GA_Hero.MapOffset.x;
|
| | | sPosY -= (ushort)GA_Hero.MapOffset.z;
|
| | |
|
| | | Vector3 _clntPos = new Vector3(sPosX * .5f, 0, sPosY * .5f);
|
| | |
|
| | | Vector3 _adjustPos = Vector3.zero;
|
| | |
|
| | | if (!chkNavmesh)
|