示例#1
0
    public IEnumerator HideSplashScreen()
    {
        if (!splashScreen)
        {
            yield break;
        }

        DialogController controller = splashScreen.GetComponent <DialogController>();

        if (splashScreen.name.Contains("StartingGame"))
        {
            controller.CloseSplashScreenImmediately();
            yield return(controller.Wait());

            yield break;
        }

        controller.CloseSplashScreen();
        yield return(controller.Wait());
    }