Exemplo n.º 1
0
    public IEnumerator TrainPauseResume()
    {
        float normalSpeed = 0.3f;

        FinalCameraController.GotoPage(1);

        FinalCameraController.ChangeCameraSpeed(normalSpeed * 0.5f);
        for (int i = ScrollStopAtMachine; i > -1; i--)
        {
            yield return(new WaitForSeconds(ValueEditor.TimeRelated.scrollPage2and3Delay));

            BagsController.DropAllBagsInWasher(i);
        }

        FinalCameraController.ChangeCameraSpeed(-1f);

        yield return(new WaitForSeconds(1.5f));

        FinalCameraController.ChangeCameraSpeed(normalSpeed);
        FinalCameraController.GotoPage(1);

        if (LevelManager.stage > 2 && roundNum > 0 && currentStation == 0)
        {
            yield return(new WaitForSeconds(3f));

            InstagramController.ShowMatchResultFollower();
            StationForButton.DisplayMatchResult(roundNum);
        }
        else
        {
            yield return(new WaitForSeconds(1.5f));

            EndTrainPause();
        }
    }