/// <summary> /// Event called on map selection change. /// </summary> private void OnMapChange(IPlayableMap map) { ClearCells(); if (map == null) { difficultyScale.Active = false; } else { var difficulty = map.Difficulty; if (difficulty == null) { throw new ArgumentException($"Missing DifficultyInfo for specified map ({map.ToString()}). Perhaps it is not a playable map?"); } SetupDifficulty(map, difficulty); } }