/// /// <param name="OnClose"></param> public virtual void Close(OnUICompleteEvent pOnClose = null) { SetVisible(false); m_pOnCloseEvent = pOnClose; NotifyClose(); OnClose(); }
public override void Close(OnUICompleteEvent pOnClose = null) { base.Close(pOnClose); int iIdx = 0; //Debug.Log(m_pButtons.Length); foreach (Button but in m_pButtons) { // tweening alpha of buttons LeanTween.alpha(but.rectTransform(), 0, TweeningDefaultTime) .setEase(m_eOpenTweenType) .setDelay(iIdx * 0.01f); iIdx++; } }
public override void Close(OnUICompleteEvent pOnClose = null) { m_pOnCloseEvent = pOnClose; NotifyClose(); DoCloseAnimation(); }
public override void Show(OnUICompleteEvent pOnShow = null) { SetVisible(true); m_pOnShowEvent = pOnShow; NotifyOpen(); DoShowAnimation(); }
public virtual void OnShow() { if (m_pOnShowEvent != null) m_pOnShowEvent(this); m_pOnShowEvent = null; }
public virtual void OnClose() { if (m_pOnCloseEvent != null) m_pOnCloseEvent(this); m_pOnCloseEvent = null; }
/// /// <param name="OnShow"></param> public virtual void Show(OnUICompleteEvent pOnShow = null) { SetVisible(true); m_pOnShowEvent = pOnShow; NotifyOpen(); OnShow(); }
public override void Show(OnUICompleteEvent pOnShow = null) { base.Show(pOnShow); foreach (Button but in m_pButtons) { but.gameObject.SetActive(false); } if (m_pGAMBBall) { Debug.Log("Brow, fiz uma gambi aqui so p simular o menu. flw"); m_pGAMBBall.Sleep(); } if (UnityEngine.Advertisements.Advertisement.IsReady()) { UnityEngine.Advertisements.Advertisement.Show(); } }