/// <summary> /// Creates Dropdown Options as string. /// </summary> private void SetGameMode() { var modes = GameModeBase.GetAll(); for (var i = 0; i < modes.Count; i++) { modes[i] = string.Concat(modes[i].Select(x => char.IsUpper(x) ? " " + x : x.ToString())).TrimStart(' '); } ModeDropDown.AddOptions(modes); }
private void OnValidate() { var modes = GameModeBase.GetAll(); foreach (var mode in modes) { var modeExists = Hints.FindIndex(x => x.Mode == mode) != -1; if (!modeExists) { Hints.Add(new Hint(mode)); } } }
private void LoadGameModes() { GameModes = GameModeBase.GetAll(); }