protected override IEnumerator ShowCoroutine(BlackjackViewEvent onShowBlackjackViewCompletion)
    {
        yield return(StartCoroutine(base.ShowCoroutine(onShowBlackjackViewCompletion)));

        m_CanvasGroup.alpha          = 1;
        m_CanvasGroup.interactable   = true;
        m_CanvasGroup.blocksRaycasts = true;
        onShowBlackjackViewCompletion?.Invoke(null);
    }
    protected override IEnumerator HideCoroutine(BlackjackViewEvent onHideBlackjackViewCompletion)
    {
        yield return(StartCoroutine(base.HideCoroutine(onHideBlackjackViewCompletion)));

        m_CanvasGroup.alpha          = 0;
        m_CanvasGroup.interactable   = false;
        m_CanvasGroup.blocksRaycasts = false;
        onHideBlackjackViewCompletion?.Invoke(null);
    }
Beispiel #3
0
    protected virtual IEnumerator ShowCoroutine(BlackjackViewEvent onShowBlackjackViewCompletion)
    {
        foreach (var viewComp in m_ViewComponents)
        {
            viewComp.Show();
        }
        yield return(new WaitForViewComponentsToShow(this));

        onShowBlackjackViewCompletion?.Invoke(null);
    }