示例#1
0
    private IEnumerator WaitForGhostConsumption(Ghost ghost)
    {
        player.OnPauseGameWhenEating();
        modeManager.OnPauseGameWhenEaten(ghost, player.EatenGhosts);
        var time = soundManager.GetConsumptionWaitTime();

        soundManager.PlayEatingGhostSound();
        yield return(new WaitForSeconds(time));

        EatGhost(ghost);
        player.OnResumeGameWhenEating();
        modeManager.OnResumeGameWhenEaten(ghost);
    }