示例#1
0
 private void OnDisable()
 {
     if (_bgTra != null)
     {
         UniversalTool.ReadyPopupAnim(_bgTra);
     }
 }
示例#2
0
 private void OnDisable()
 {
     if (_backgroundImage != null)
     {
         UniversalTool.ReadyPopupAnim(_backgroundImage);
     }
 }
示例#3
0
 private void OnDisable()
 {
     if (view != null)
     {
         UniversalTool.ReadyPopupAnim(view);
     }
 }
示例#4
0
 /// <summary>
 /// 打开规则说明
 /// </summary>
 private void OpenRuleDesc()
 {
     _ruleDescButClose.onClick.RemoveAllListeners();
     _ruleDescButClose.onClick.AddListener(OnClickRuleDescClose);
     UniversalTool.ReadyPopupAnim(_ruleDescBG);
     _ruleDesc.SetActive(true);
     UniversalTool.StartPopupAnim(_ruleDescBG);
 }
示例#5
0
 void Awake()
 {
     _bgTra = transform.Find("BG_Image");
     if (_bgTra != null)
     {
         UniversalTool.ReadyPopupAnim(_bgTra);
     }
 }
示例#6
0
 private void Awake()
 {
     _backgroundImage = transform.Find("BackgroundImage");
     if (_backgroundImage != null)
     {
         UniversalTool.ReadyPopupAnim(_backgroundImage);
     }
 }
示例#7
0
 private void Awake()
 {
     if (!_isInitial)
     {
         Initial();
     }
     if (_backgroundImageRect != null)
     {
         UniversalTool.ReadyPopupAnim(_backgroundImageRect);
     }
 }
示例#8
0
 private void Awake()
 {
     if (!_isInitial)
     {
         Initial();
     }
     if (_bgBoxTra != null)
     {
         UniversalTool.ReadyPopupAnim(_bgBoxTra);
     }
 }
示例#9
0
    public Action buyFailureCallBack;  //购买失败回调

    private void Awake()
    {
        if (view != null)
        {
            UniversalTool.ReadyPopupAnim(view);
        }
        //取消事件
        maskBtn.onClick.RemoveAllListeners();
        maskBtn.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(view, Cancel);
        });

        cancelBtn.onClick.RemoveAllListeners();
        cancelBtn.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(view, Cancel);
        });
    }
示例#10
0
    private void Awake()
    {
        _backgroundImage = transform.Find("BackgroundImage");
        if (_backgroundImage != null)
        {
            UniversalTool.ReadyPopupAnim(_backgroundImage);
        }

        buttonMask.onClick.RemoveAllListeners();
        buttonMask.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(_backgroundImage, Cancel);
        });

        buttonCancel.onClick.RemoveAllListeners();
        buttonCancel.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(_backgroundImage, Cancel);
        });

        buttonBuy.onClick.RemoveAllListeners();
        buttonBuy.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(_backgroundImage, Confirm);
        });

        _buttonThinkAgain.onClick.RemoveAllListeners();
        _buttonThinkAgain.onClick.AddListener(() =>
        {
            UniversalTool.CancelPopAnim(_backgroundImage, Confirm);
        });

        //记录位置
        btnCancelPos = buttonCancel.transform.localPosition;
        btnBuyPos    = buttonBuy.transform.localPosition;
    }
示例#11
0
 //还原动画
 private void OnDisable()
 {
     UniversalTool.ReadyPopupAnim(transform);
 }
示例#12
0
    public Transform _itemGradeBg;  //物品等级

    //准备动画
    private void Awake()
    {
        UniversalTool.ReadyPopupAnim(transform);
    }
示例#13
0
 private void Awake()
 {
     _tra    = transform.Find("BG_Image");
     _effect = transform.Find("BG_Image/EffectImage").GetComponent <RawImage>();
     UniversalTool.ReadyPopupAnim(_tra);
 }
示例#14
0
 // Start is called before the first frame update
 void Start()
 {
     //Init();
     UniversalTool.ReadyPopupAnim(_bgTra);
 }