Example #1
0
        protected override void Awake()
        {
            base.Awake();

            soundManager    = SoundManager.Instance();
            uiSoundsManager = UiSoundsManager.Instance();

            soundManager.LoadValues();
            interfaceSlider.value = soundManager.InterfaceVolume;
            soundsSlider.value    = soundManager.SoundsVolume;
            musicSlider.value     = soundManager.MusicVolume;
        }
        // private TeamsColorManager colorManager;

        protected override void Awake()
        {
            base.Awake();

            joysticksManager = JoysticksManager.Instance();
            uiSoundsManager  = UiSoundsManager.Instance();
            // colorManager = TeamsColorManager.Instance();

            var colorsOptions = new List <Dropdown.OptionData>();

            // var names = Enum.GetNames(typeof(TeamsColorManager.ColorsMode));
            // foreach (var optionName in names)
            // {
            //     var prettifiedName = Regex.Replace(optionName, @"((?<=\p{Ll})\p{Lu})|((?!\A)\p{Lu}(?>\p{Ll}))", " $0");
            //     colorsOptions.Add(new Dropdown.OptionData(prettifiedName));
            // }
            // colorsDropdown.options = colorsOptions;
            // colorsDropdown.SetValueWithoutNotify((int)colorManager.TeamsColorsMode);

            if (joysticksManager.MovementType != JoystickType.Fixed)
            {
                movementLocked.SetActive(false);
                movementUnlocked.SetActive(true);
            }
            else
            {
                movementLocked.SetActive(true);
                movementUnlocked.SetActive(false);
            }
            if (joysticksManager.AttackType != JoystickType.Fixed)
            {
                attackLocked.SetActive(false);
                attackUnlocked.SetActive(true);
            }
            else
            {
                attackLocked.SetActive(true);
                attackUnlocked.SetActive(false);
            }
        }
Example #3
0
 protected override void Awake()
 {
     base.Awake();
     uiSoundsManager = UiSoundsManager.Instance();
 }