| | |
| | | async UniTask DisplayAsync(int heroID, int index, bool isForceSkip=false) |
| | | { |
| | | this.transform.localScale = Vector3.zero; |
| | | int delaytime = LocalSave.GetBool(HeroUIManager.skipKey, false) ? 0 : 100 * index; |
| | | int delaytime = LocalSave.GetBool(HeroUIManager.skipKey, false) ? 50 * index : 100 * index; |
| | | |
| | | await UniTask.Delay(delaytime); |
| | | this.transform.localScale = Vector3.one; |
| | |
| | | |
| | | void SendHeroCall() |
| | | { |
| | | heroInfoObj.SetActive(false); |
| | | HeroUIManager.Instance.selectCallIndex = 0; |
| | | if (HappyXBModel.Instance.IsHaveFreeXB((int)HeroUIManager.Instance.selectCallType)) |
| | | { |
| | |
| | | |
| | | static bool CanOpen() |
| | | { |
| | | if (UIManager.Instance.IsOpened<HeroCallResultWin>()) |
| | | { |
| | | // if (UIManager.Instance.IsOpened<HeroCallResultWin>()) |
| | | // { |
| | | // return false; |
| | | // } |
| | | if (HappyXBModel.Instance.isXBCoolTime) |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |