void HandleOnAccountCreation(AccountRegisterResolution resolution)
    {
        switch (resolution)
        {
        case AccountRegisterResolution.SUCCESS:
            parentPopup.Close();
            debugPopupOpener.OpenPopup();
            break;

        case AccountRegisterResolution.FAILED:
            debugPopupOpener.OpenPopup();
            break;

        default:
            throw new System.Exception("AccountCreationResolution not implemented: " + resolution.ToString());
        }
    }
    void HandleOnAccountCreation(AccountRegisterResolution resolution)
    {
        switch (resolution)
        {
        case AccountRegisterResolution.SUCCESS:
            toastPanel.OpenPopup();
            this.gameObject.SetActive(false);
            basePanel.SetActive(true);
            break;

        case AccountRegisterResolution.FAILED:
            toastPanel.OpenPopup();

            break;

        default:
            throw new System.Exception("AccountCreationResolution not implemented: " + resolution.ToString());
        }
    }
Exemple #3
0
    public static IEnumerator DelayInvoke(float delay, OnAccountCreation e, AccountRegisterResolution resolution)
    {
        yield return(new WaitForSeconds(delay));

        e.Invoke(resolution);
    }