| | |
| | | using UnityEngine; |
| | | using UnityEngine.EventSystems; |
| | | using System; |
| | | using Cysharp.Threading.Tasks; |
| | | using System.Diagnostics; |
| | | |
| | | [DisallowMultipleComponent] |
| | | |
| | |
| | | |
| | | if (_stepByStep) |
| | | { |
| | | StartCoroutine("Co_StepByStepAppear"); |
| | | Co_StepByStepAppear(); |
| | | // StartCoroutine("Co_StepByStepAppear"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | IEnumerator Co_StepByStepAppear() |
| | | private async UniTask Co_StepByStepAppear() |
| | | { |
| | | for (int i = 0; i < infiniteItems.Count; i++) |
| | | { |
| | |
| | | { |
| | | infiniteItem.SetActive(true); |
| | | infiniteItem.OpeningShow(); |
| | | yield return WaitingForSecondConst.WaitMS100; |
| | | await UniTask.Delay(1000); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | public void OnDrag(PointerEventData eventData) |
| | | { |
| | | if (vnxbqy.UI.NewBieCenter.Instance.inGuiding) |
| | | { |
| | | return; |
| | | } |
| | | // if (vnxbqy.UI.NewBieCenter.Instance.inGuiding) |
| | | // { |
| | | // return; |
| | | // } |
| | | |
| | | if (autoLerp || eventData.button != PointerEventData.InputButton.Left) |
| | | { |
| | |
| | | { |
| | | if (content == null) |
| | | { |
| | | DebugEx.Log("Content 不能为空!"); |
| | | UnityEngine.Debug.Log("Content 不能为空!"); |
| | | return; |
| | | } |
| | | |