예제 #1
0
    // ゲーム開始時のUIのアニメーション
    private IEnumerator StartFlow()
    {
        // タイトル画面を消すアニメーションをする+0.5秒待つ
        yield return(new WaitForSeconds(titleUI.TitleSkip() + 0.5f));

        // レベルのカットイン
        soundEffecter.SoundEffect(SoundEffect.Swap);
        yield return(new WaitForSeconds(levelUI.LvCutIn(Difficulty.GetLevel()) - 0.5f));

        // 障害物の配置確認用のカメラアニメーション
        yield return(new WaitForSeconds(cameraMover.StartCameraAnimation(stageGenerator.GetPlaneScaleX(), difficulty.GetRow(), stageGenerator.GetInterval())));

        // やっとプレイ開始
        isPlaying = true;
        // プレイヤーの移動開始 難易度に応じたスピードと列を送る
        playerMover.MoveStart(difficulty.GetPlayerSpeed(), difficulty.GetColumn());
    }