//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, June 14, 2018 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; 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 > GeneralDefine.mainWinSkillResetTime) { WindowCenter.Instance.Get().MarkRayButton(); this.gameObject.SetActive(false); timer = 0f; } } } }