| | |
| | | //-------------------------------------------------------- |
| | | // [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;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|