少年修仙传客户端代码仓库
client_linchunjie
2018-09-19 9fe4964c60e82735b165001d6e3d2914f73184e5
System/WorldMap/LocalMapFindPath.cs
@@ -64,11 +64,11 @@
            DrawFunctionNPCs();
            DrawEventPoints();
            m_HeroHead.transform.SetAsLastSibling();
            FoucsEventPoint(model.selectedLocalMapEventPoint);
            FoucsEventPoint(model.selectedMapEventPoint);
            m_BoundDrag.onBeginDrag.RemoveAllListeners();
            m_BoundDrag.onBeginDrag.AddListener(OnBeginDrag);
            model.selectLocalMapEventPointEvent += FoucsEventPoint;
            model.selectMapEventPointEvent += FoucsEventPoint;
            var hero = PlayerDatas.Instance.hero;
            if (hero != null)
@@ -95,7 +95,7 @@
                hero.OnPathFindStop -= OnHeroStopMove;
            }
            model.selectLocalMapEventPointEvent -= FoucsEventPoint;
            model.selectMapEventPointEvent -= FoucsEventPoint;
            m_BoundDrag.onBeginDrag.RemoveAllListeners();
            for (int i = 0; i < tagBehaviours.Count; i++)
@@ -138,7 +138,7 @@
            if (RectTransformUtility.RectangleContainsScreenPoint((RectTransform)this.transform, Input.mousePosition, CameraManager.uiCamera)
                && !RectTransformUtility.RectangleContainsScreenPoint(m_EventPointInstroduce.containerDetails, Input.mousePosition, CameraManager.uiCamera))
            {
                model.selectedLocalMapEventPoint = -1;
                model.selectedMapEventPoint = -1;
            }
        }
@@ -384,7 +384,7 @@
        private void FoucsEventPoint(int _eventPoint)
        {
            if (model.selectedLocalMapEventPoint != -1)
            if (model.selectedMapEventPoint != -1)
            {
                var config = Config.Instance.Get<MapEventPointConfig>(_eventPoint);
                var monsterRefreshConfig = Config.Instance.Get<MonsterRefreshPointConfig>(config.NPCID);
@@ -403,7 +403,7 @@
                }
                m_EventPointInstroduce.gameObject.SetActive(true);
                m_EventPointInstroduce.Display(model.selectedLocalMapEventPoint, m_SelecteEventPointSign);
                m_EventPointInstroduce.Display(model.selectedMapEventPoint, m_SelecteEventPointSign);
            }
            else
            {
@@ -447,7 +447,7 @@
        private void OnBeginDrag()
        {
            model.selectedLocalMapEventPoint = -1;
            model.selectedMapEventPoint = -1;
        }
        public struct LocalMap