少年修仙传客户端代码仓库
client_linchunjie
2018-08-20 5e5551e8e7630f816a68c7bbe554a7e0bfa8705f
System/MainInterfacePanel/SkillContainerResetTimer.cs
@@ -1,44 +1,44 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Thursday, June 14, 2018
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using TableConfig;
namespace Snxxz.UI
{
    public class SkillContainerResetTimer : MonoBehaviour
    {
        float timer = 0f;
        private void OnEnable()
        {
            timer = 0f;
        }
        private void LateUpdate()
        {
            if (NewBieCenter.Instance.inGuiding)
            {
                return;
            }
            timer += Time.deltaTime;
            if (timer > GeneralConfig.Instance.mainWinSkillResetTime)
            {
                WindowCenter.Instance.Get<MainInterfaceWin>().MarkRayButton();
                this.gameObject.SetActive(false);
                timer = 0f;
            }
        }
    }
}
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Thursday, June 14, 2018
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using TableConfig;
namespace Snxxz.UI
{
    public class SkillContainerResetTimer : MonoBehaviour
    {
        float timer = 0f;
        private void OnEnable()
        {
            timer = 0f;
        }
        private void LateUpdate()
        {
            if (NewBieCenter.Instance.inGuiding)
            {
                return;
            }
            timer += Time.deltaTime;
            if (timer > GeneralConfig.Instance.mainWinSkillResetTime)
            {
                WindowCenter.Instance.Get<MainInterfaceWin>().MarkRayButton();
                this.gameObject.SetActive(false);
                timer = 0f;
            }
        }
    }
}