少年修仙传客户端代码仓库
client_linchunjie
2019-04-27 3958de6255a827a46ae0e23291a1756f223e4f5d
3335 任务前往Npc修改
1个文件已修改
11 ■■■■ 已修改文件
System/Message/RichMoveEvent.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/RichMoveEvent.cs
@@ -45,6 +45,11 @@
            case RichTextEventEnum.MOVENPC:
                {
                    int id = int.Parse(href.mSplits["movenpc"]);
                    var movetype = 2;
                    if (href.mSplits.ContainsKey("movetype"))
                    {
                        movetype = int.Parse(href.mSplits["movetype"]);
                    }
                    var error = 0;
                    if (!TestMoveNpc(id, out error))
                    {
@@ -55,7 +60,7 @@
                    if (hero != null)
                    {
                        PlayerDatas.Instance.hero.Behaviour.StopHandupAI();
                        SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(id));
                        SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(id, movetype));
                    }
                }
                break;
@@ -202,7 +207,7 @@
        SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(new Vector3(m_Posx / 2, 0, m_Posy / 2)));
    }
    private IEnumerator WaitForSkillFinished(int id)
    private IEnumerator WaitForSkillFinished(int id, int movetype)
    {
        GA_Hero _hero = PlayerDatas.Instance.hero;
@@ -227,7 +232,7 @@
            yield break;
        }
        MapTransferUtility.Instance.MoveToNPC(id);
        MapTransferUtility.Instance.MoveToNPC(id, 0, movetype == 1);
    }
    private IEnumerator WaitForSkillFinished(Vector3 pos)