| | |
| | | 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)
|
| | |
| | | hero.OnPathFindStop -= OnHeroStopMove;
|
| | | }
|
| | |
|
| | | model.selectLocalMapEventPointEvent -= FoucsEventPoint;
|
| | | model.selectMapEventPointEvent -= FoucsEventPoint;
|
| | | m_BoundDrag.onBeginDrag.RemoveAllListeners();
|
| | |
|
| | | for (int i = 0; i < tagBehaviours.Count; i++)
|
| | |
| | | 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;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | 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);
|
| | |
| | | }
|
| | |
|
| | | m_EventPointInstroduce.gameObject.SetActive(true);
|
| | | m_EventPointInstroduce.Display(model.selectedLocalMapEventPoint, m_SelecteEventPointSign);
|
| | | m_EventPointInstroduce.Display(model.selectedMapEventPoint, m_SelecteEventPointSign);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | private void OnBeginDrag()
|
| | | {
|
| | | model.selectedLocalMapEventPoint = -1;
|
| | | model.selectedMapEventPoint = -1;
|
| | | }
|
| | |
|
| | | public struct LocalMap
|