Beispiel #1
0
    private IEnumerator ExecuteCoroutine()
    {
        whiteBackground.color = Color.white;
        blackBackground.color = Color.white;

        buildingObjects.MoveBuilding();
        groundController.PanelGroundOn();

        yield return(StartCoroutine(GameManager.instance.fadeManager.SpriteFadeOutCoroutine(whiteBackground, 0.3f)));

        yield return(StartCoroutine(GameManager.instance.fadeManager.SpriteFadeOutCoroutine(blackBackground, 0.3f)));

        whiteBackground.color = Color.white;
        yield return(StartCoroutine(GameManager.instance.fadeManager.SpriteFadeOutCoroutine(whiteBackground, 0.7f)));
    }