Exemplo n.º 1
0
    private void RespondTo_DirectionHasChanged_Event()
    {
        // Flip direction on hero manager
        heroManager.FlipDirection();

        // Flip direction on obstacle manager
        obstacleManager.FlipDirection();

        // Flip direction on enemy boss manager
        bossManager.FlipDirection();

        // Change direction of hero
        heroDirectionX = heroDirectionX * (-1);

        // Save direction on file
        heroDirectionManager.SaveNewDirection(heroDirectionX);
    }