From cdfc472ad6ab1baa880ff9f6f15c7e0d8493150d Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 11 八月 2018 11:33:01 +0800
Subject: [PATCH] 2391 【前端】游戏性能优化
---
System/WorldMap/MapLineBehaviour.cs | 100 +++++++++++++++++++++++++-------------------------
1 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/System/WorldMap/MapLineBehaviour.cs b/System/WorldMap/MapLineBehaviour.cs
index f22f9b7..a90d2de 100644
--- a/System/WorldMap/MapLineBehaviour.cs
+++ b/System/WorldMap/MapLineBehaviour.cs
@@ -1,50 +1,50 @@
-锘�//--------------------------------------------------------
-// [Author]: 绗簩涓栫晫
-// [ Date ]: Tuesday, November 07, 2017
-//--------------------------------------------------------
-using UnityEngine;
-using System.Collections;
-using UnityEngine.UI;
-
-namespace Snxxz.UI
-{
-
- public class MapLineBehaviour : MonoBehaviour
- {
- [SerializeField] Button m_Select;
- [SerializeField] Text m_Title;
-
- MapModel m_Model;
- MapModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<MapModel>()); } }
-
- int lineId = 0;
- Transform m_ContainerLines;
-
- public void Display(int _lineId, Transform _parent)
- {
- lineId = _lineId;
- m_Title.text = Language.Get("line", _lineId + 1);
- m_ContainerLines = _parent;
- }
-
- private void Awake()
- {
- m_Select.AddListener(SelectLine);
- }
-
- private void SelectLine()
- {
- m_ContainerLines.gameObject.SetActive(false);
- model.RequestSelectedLine(lineId);
-
- WindowCenter.Instance.Close<WorldMapWin>();
- WindowCenter.Instance.Close<LocalMapWin>();
- WindowCenter.Instance.Open<MainInterfaceWin>();
- }
-
- }
-
-}
-
-
-
+锘�//--------------------------------------------------------
+// [Author]: 绗簩涓栫晫
+// [ Date ]: Tuesday, November 07, 2017
+//--------------------------------------------------------
+using UnityEngine;
+using System.Collections;
+using UnityEngine.UI;
+
+namespace Snxxz.UI
+{
+
+ public class MapLineBehaviour : MonoBehaviour
+ {
+ [SerializeField] Button m_Select;
+ [SerializeField] Text m_Title;
+
+ MapModel m_Model;
+ MapModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<MapModel>()); } }
+
+ int lineId = 0;
+ Transform m_ContainerLines;
+
+ public void Display(int _lineId, Transform _parent)
+ {
+ lineId = _lineId;
+ m_Title.text = Language.Get("line", _lineId + 1);
+ m_ContainerLines = _parent;
+ }
+
+ private void Awake()
+ {
+ m_Select.AddListener(SelectLine);
+ }
+
+ private void SelectLine()
+ {
+ m_ContainerLines.gameObject.SetActive(false);
+ model.RequestSelectedLine(lineId);
+
+ WindowCenter.Instance.Close<WorldMapWin>();
+ WindowCenter.Instance.Close<LocalMapWin>();
+ WindowCenter.Instance.Open<MainInterfaceWin>();
+ }
+
+ }
+
+}
+
+
+
--
Gitblit v1.8.0