Пример #1
0
    /// <summary>
    /// ゲーム開始時の待ち
    /// </summary>
    private void State_Ready(StateMachineCase c)
    {
        switch (c)
        {
        case StateMachineCase.Enter:
        {
            _timer.Init(1.0f);
        }
        break;

        case StateMachineCase.Exec:
        {
            _player.InputUpdate(false);
            if (_timer.Update())
            {
                _state.ChangeState(State_Play);
            }
        }
        break;

        case StateMachineCase.Exit:
        {
            _readyText.Show(Vector2.zero);
            SoundManager.Instance.PlayBGM(BGMPath._SUNADOKEISEIUN);
            SoundManager.Instance.PlaySE(SEPath._READY_GO);
        }
        break;
        }
    }