Exemple #1
0
    public void LoadMap(Map map, int difficulty)
    {
        once     = true;
        songInfo = map;

        // Assign map data to local variable
        songArtist = map.artist;
        songTitle  = map.title;
        songBPM    = map.bpm;

        judgementTime = map.timings;

        universalOffset = audioManager.universalOffset;

        // Difficulty set to easy
        choicesManager.Initialization(difficulty, judgementTime);

        audioManager.Initialized(map);
        secPerBeat = 60f / songBPM;

        // Calculate timeGap (speed)
        timeGap = 250f / songBPM;

        // Call delay if only the first judgementTime under 1/2/3 seconds (testing)
        // Call countdown
        // Start delay countdown
        gameManager.StartCountdown(3);
    }