Example #1
0
    private IEnumerator showResult(int errorID)
    {
        destinationColorText = Color.clear;
        yield return(new WaitForSeconds(0.5f));

        destinationColorText = fontColor;

        if (errorID == 1)
        {
            loadingScreenText.text = "Setup finished";
            loadingWheel.SetSucessIcon();

            yield return(new WaitForSeconds(1f));
        }

        else
        {
            loadingScreenText.text = "Setup failed";
            loadingWheel.SetFailedIcon();

            yield return(new WaitForSeconds(5f));
        }

        isDone = true;
    }