private void OnDisable() { if (_bgTra != null) { UniversalTool.ReadyPopupAnim(_bgTra); } }
private void OnDisable() { if (_backgroundImage != null) { UniversalTool.ReadyPopupAnim(_backgroundImage); } }
private void OnDisable() { if (view != null) { UniversalTool.ReadyPopupAnim(view); } }
/// <summary> /// 打开规则说明 /// </summary> private void OpenRuleDesc() { _ruleDescButClose.onClick.RemoveAllListeners(); _ruleDescButClose.onClick.AddListener(OnClickRuleDescClose); UniversalTool.ReadyPopupAnim(_ruleDescBG); _ruleDesc.SetActive(true); UniversalTool.StartPopupAnim(_ruleDescBG); }
void Awake() { _bgTra = transform.Find("BG_Image"); if (_bgTra != null) { UniversalTool.ReadyPopupAnim(_bgTra); } }
private void Awake() { _backgroundImage = transform.Find("BackgroundImage"); if (_backgroundImage != null) { UniversalTool.ReadyPopupAnim(_backgroundImage); } }
private void Awake() { if (!_isInitial) { Initial(); } if (_backgroundImageRect != null) { UniversalTool.ReadyPopupAnim(_backgroundImageRect); } }
private void Awake() { if (!_isInitial) { Initial(); } if (_bgBoxTra != null) { UniversalTool.ReadyPopupAnim(_bgBoxTra); } }
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); }); }
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; }
//还原动画 private void OnDisable() { UniversalTool.ReadyPopupAnim(transform); }
public Transform _itemGradeBg; //物品等级 //准备动画 private void Awake() { UniversalTool.ReadyPopupAnim(transform); }
private void Awake() { _tra = transform.Find("BG_Image"); _effect = transform.Find("BG_Image/EffectImage").GetComponent <RawImage>(); UniversalTool.ReadyPopupAnim(_tra); }
// Start is called before the first frame update void Start() { //Init(); UniversalTool.ReadyPopupAnim(_bgTra); }