| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine; |
| | | public class ScrollTip |
| | | { |
| | |
| | | return tip; |
| | | } |
| | | |
| | | public static async UniTask<ScrollTipDetail> RequestAsync() |
| | | { |
| | | ScrollTipDetail tip = null; |
| | | if (pool == null) |
| | | { |
| | | var _prefab = await UILoader.LoadPrefabAsync("Tip"); |
| | | pool = GameObjectPoolManager.Instance.GetPool(_prefab); |
| | | } |
| | | if (pool != null) |
| | | { |
| | | tip = pool.Request().AddMissingComponent<ScrollTipDetail>(); |
| | | } |
| | | return tip; |
| | | } |
| | | |
| | | public static void Release(ScrollTipDetail tip, bool next = true) |
| | | { |
| | | if (m_ActiveTips.Contains(tip)) |