Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        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();
 }