示例#1
0
    private void RespondTo_GameIsOver_Event()
    {
        // Start dragging map
        mapManager.StartDragging();
        // Change map state
        mapManager.SetHeroDeadState();

        // Start dragging obstacles
        obstacleManager.StartDragging();

        // Speed up bosses
        bossManager.StartAccelerating();

        // Set game as over
        gameState = GameStates.GAME_OVER;

        // Fire event: Hero is dead
        HeroIsDead?.Invoke(currentScore);
    }