From 649209187f31a1a11ee9b0320de16c48176b84e0 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 12 九月 2018 10:56:10 +0800
Subject: [PATCH] 3335 代码维护 ,整理mapModel代码
---
System/WorldMap/LocalMapFindPath.cs | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/System/WorldMap/LocalMapFindPath.cs b/System/WorldMap/LocalMapFindPath.cs
index 277943e..983b798 100644
--- a/System/WorldMap/LocalMapFindPath.cs
+++ b/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
--
Gitblit v1.8.0