From a0ede150686a218c92b901b1f20aef12a9913890 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 14 九月 2018 09:36:59 +0800
Subject: [PATCH] 1930【1.0.15】【主干】功能预告跳转八卦炉激活,功能预告界面未关闭

---
 UI/Common/TimerBehaviour.cs |  192 ++++++++++++++++++++++++------------------------
 1 files changed, 96 insertions(+), 96 deletions(-)

diff --git a/UI/Common/TimerBehaviour.cs b/UI/Common/TimerBehaviour.cs
index bc43f9b..78aa519 100644
--- a/UI/Common/TimerBehaviour.cs
+++ b/UI/Common/TimerBehaviour.cs
@@ -1,96 +1,96 @@
-锘�//--------------------------------------------------------
-//    [Author]:           绗簩涓栫晫
-//    [  Date ]:           Saturday, November 11, 2017
-//--------------------------------------------------------
-using UnityEngine;
-using System.Collections;
-using UnityEngine.UI;
-using System;
-
-namespace Snxxz.UI
-{
-
-    public class TimerBehaviour : MonoBehaviour
-    {
-        [SerializeField] protected Text m_TimeShow;
-        public Text timeShow { get { return m_TimeShow; } }
-
-        [SerializeField] Pattern m_Pattern = Pattern.English;
-
-        protected DateTime endTime;
-        Action onTime;
-
-        float secondTimer = 0f;
-
-        public void Begin(DateTime _endTime, Action _callBack = null)
-        {
-            endTime = _endTime;
-            onTime = _callBack;
-            if (endTime > DateTime.Now)
-            {
-                this.gameObject.SetActive(true);
-                UpdateTimeShow();
-            }
-            else
-            {
-                this.gameObject.SetActive(false);
-            }
-        }
-
-        public void Stop()
-        {
-            endTime = DateTime.MinValue;
-            onTime = null;
-            this.gameObject.SetActive(false);
-        }
-
-        private void LateUpdate()
-        {
-            if (DateTime.Now > endTime)
-            {
-                if (onTime != null)
-                {
-                    onTime();
-                    onTime = null;
-                }
-
-                this.gameObject.SetActive(false);
-            }
-            else
-            {
-                secondTimer += Time.deltaTime;
-                if (secondTimer > 1f)
-                {
-                    secondTimer = 0f;
-                    UpdateTimeShow();
-                }
-            }
-        }
-
-        protected virtual void UpdateTimeShow()
-        {
-            var lastSecond = (float)(endTime - DateTime.Now).TotalSeconds;
-
-            switch (m_Pattern)
-            {
-                case Pattern.English:
-                    m_TimeShow.text = TimeUtility.SecondsToHMS(Mathf.RoundToInt(lastSecond));
-                    break;
-                case Pattern.Chinese:
-                    m_TimeShow.text = TimeUtility.SecondsToDHMSCHS(Mathf.RoundToInt(lastSecond));
-                    break;
-            }
-        }
-
-        public enum Pattern
-        {
-            English = 0,
-            Chinese = 1,
-        }
-
-    }
-
-}
-
-
-
+锘�//--------------------------------------------------------
+//    [Author]:           绗簩涓栫晫
+//    [  Date ]:           Saturday, November 11, 2017
+//--------------------------------------------------------
+using UnityEngine;
+using System.Collections;
+using UnityEngine.UI;
+using System;
+
+namespace Snxxz.UI
+{
+
+    public class TimerBehaviour : MonoBehaviour
+    {
+        [SerializeField] protected Text m_TimeShow;
+        public Text timeShow { get { return m_TimeShow; } }
+
+        [SerializeField] Pattern m_Pattern = Pattern.English;
+
+        protected DateTime endTime;
+        Action onTime;
+
+        float secondTimer = 0f;
+
+        public void Begin(DateTime _endTime, Action _callBack = null)
+        {
+            endTime = _endTime;
+            onTime = _callBack;
+            if (endTime > DateTime.Now)
+            {
+                this.gameObject.SetActive(true);
+                UpdateTimeShow();
+            }
+            else
+            {
+                this.gameObject.SetActive(false);
+            }
+        }
+
+        public void Stop()
+        {
+            endTime = DateTime.MinValue;
+            onTime = null;
+            this.gameObject.SetActive(false);
+        }
+
+        private void LateUpdate()
+        {
+            if (DateTime.Now > endTime)
+            {
+                if (onTime != null)
+                {
+                    onTime();
+                    onTime = null;
+                }
+
+                this.gameObject.SetActive(false);
+            }
+            else
+            {
+                secondTimer += Time.deltaTime;
+                if (secondTimer > 1f)
+                {
+                    secondTimer = 0f;
+                    UpdateTimeShow();
+                }
+            }
+        }
+
+        protected virtual void UpdateTimeShow()
+        {
+            var lastSecond = (float)(endTime - DateTime.Now).TotalSeconds;
+
+            switch (m_Pattern)
+            {
+                case Pattern.English:
+                    m_TimeShow.text = TimeUtility.SecondsToHMS(Mathf.RoundToInt(lastSecond));
+                    break;
+                case Pattern.Chinese:
+                    m_TimeShow.text = TimeUtility.SecondsToDHMSCHS(Mathf.RoundToInt(lastSecond));
+                    break;
+            }
+        }
+
+        public enum Pattern
+        {
+            English = 0,
+            Chinese = 1,
+        }
+
+    }
+
+}
+
+
+

--
Gitblit v1.8.0