Beispiel #1
0
    private void OnClickClose()
    {
        if (_ruleDesc.activeInHierarchy)
        {
            OnClickRuleDescClose();
        }

        UniversalTool.CancelUIAnimTwo(_dealCG, _dealBG, UIClose);
    }
Beispiel #2
0
 public void Skip(Action endAction)
 {
     UniversalTool.CancelUIAnimTwo(GetComponent <CanvasGroup>(), _thisBgRect, () =>
     {
         ClearItemAndData();
         UIComponent.HideUI(UIType.TaskPanel);
         RedDotManager.UpdateRedDot(RedDotManager.RedDotKey.Task);
         endAction?.Invoke();
     });
 }
Beispiel #3
0
    /// <summary>
    /// 取消抽奖/关闭抽奖界面
    /// </summary>
    private async void OnClickCancel()
    {
        //取消动画
        UniversalTool.CancelUIAnimTwo(canvasGroup, craneMachine, null);
        await UniTask.Delay(TimeSpan.FromSeconds(0.35));

        _needCloseUI = true;
        SendServer(true);
        //
    }
Beispiel #4
0
 /// <summary>
 /// 点击关闭
 /// </summary>
 public void ClickClose()
 {
     UniversalTool.CancelUIAnimTwo(GetComponent <CanvasGroup>(), _thisBgRect, () =>
     {
         ClearItemAndData();
         UIComponent.HideUI(UIType.TaskPanel);
         //TaskPanelTool.UpdateTaskTag();
         RedDotManager.UpdateRedDot(RedDotManager.RedDotKey.Task);
     });
 }
Beispiel #5
0
 /// <summary>
 /// 关闭仓库
 /// </summary>
 public void Close()
 {
     UniversalTool.CancelUIAnimTwo(transform.Find("Box").GetComponent <CanvasGroup>(), transform.Find("Box"), () =>
     {
         UpdateAllLock();
         OpenTreasureChestMaskBtn(false);
         CloseAllTime();
         UIComponent.HideUI(UIType.Warehouse);
         RedDotManager.UpdateRedDot(RedDotManager.RedDotKey.Warehouse);
     });
 }
Beispiel #6
0
    /// <summary>
    /// 取消抽奖/关闭抽奖界面
    /// </summary>
    private async void OnClickCancel()
    {
        if (_isLotteryState)
        {
            return;
        }

        //取消动画
        UniversalTool.CancelUIAnimTwo(canvasGroup, craneMachine, null);
        await UniTask.Delay(TimeSpan.FromSeconds(0.35));

        CloseCallback?.Invoke();
        UIComponent.RemoveUI(UIType.UICraneMachine);
    }
Beispiel #7
0
 /// <summary>
 /// 点击关闭好友界面
 /// </summary>
 private void OnHideFriendUI()
 {
     UniversalTool.CancelUIAnimTwo(GetComponent <CanvasGroup>(), _containerTF, () =>
     {
         if (isShowFriendManorUI)
         {
             //_friendManorTF.gameObject.SetActive(isShowFriendManorUI);
             //_containerTF.gameObject.SetActive(!isShowFriendManorUI);
             UIComponent.HideUI(UIType.UIFriend);
         }
         else
         {
             UIComponent.HideUI(UIType.UIFriend);
         }
     });
 }
Beispiel #8
0
 /// <summary>
 /// 关闭聊天面板
 /// </summary>
 private void ClickCloseBtn()
 {
     if (_timeCountDownComponent != null)
     {
         Destroy(_timeCountDownComponent.gameObject);
     }
     UniversalTool.CancelUIAnimTwo(GetComponent <CanvasGroup>(), _bgTra, () =>
     {
         UIComponent.HideUI(UIType.ChatPanel);
         _currPrivateChatIndex = 0;
         ChatTool.SetBulletScreenOnOff(_barrageToggle.isOn);
         //接收消息就存储
         ChatTool.PrivateChatSaveFile();
         //初始信息发送cd时记录离开时当前服务器时间戳
         if (_isBeTimeUnlock && ChatTool._isOverCd)
         {
             ChatTool._isOverCd      = false;
             ChatTool._chatLeaveTime = TimeHelper.ServerTimeStampNow;
         }
         Debug.Log("关闭_________________________________");
     });
 }
Beispiel #9
0
 private void OnClickClose()
 {
     UniversalTool.CancelUIAnimTwo(_canvasGroup, _tra, UIClose);
 }