예제 #1
0
    private IEnumerator StartEngine()
    {
        if (isStartingEngine)
        {
            yield break;
        }
        isStartingEngine = true;
        yield return(sound.DoPlayEngineStart());

        dynamics.StartEngine();
        scoreEffect.EngineStarted();
        isStartingEngine = false;
    }