Esempio n. 1
0
    private IEnumerator Intro()
    {
        StartCoroutine(Statics.ConsoleText(TextConsole, "Booting ", 0.1f, true));
        yield return(new WaitForSeconds(0.1f));

        TextConsole.text += "."
                            yield return(new WaitForSeconds(Random.value * 0.4f));

        TextConsole.text += "."
                            yield return(new WaitForSeconds(Random.value * 0.4f));

        TextConsole.text += "."
                            yield return(new WaitForSeconds(Random.value * 0.4f));

        StartCoroutine(Statics.ConsoleText(TextConsole, "Welcome to MechDrone game!\n", 0.1f, true));
    }