// Use this for initialization
 void Start()
 {
     potionMenu = GameObject.FindObjectOfType<PotionMenuController>();
     ingredientMenu = GameObject.FindObjectOfType<IngredientMenuController>();
     pauser = GameObject.FindObjectOfType<AudioSwitcher>();
     pauseMenu = transform.Find("Pause Menu").gameObject;
     pauseMenu.SetActive(false);
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     potionMenu     = GameObject.FindObjectOfType <PotionMenuController>();
     ingredientMenu = GameObject.FindObjectOfType <IngredientMenuController>();
     pauser         = GameObject.FindObjectOfType <AudioSwitcher>();
     pauseMenu      = transform.Find("Pause Menu").gameObject;
     pauseMenu.SetActive(false);
 }
Ejemplo n.º 3
0
 public ProfileManager(WindowMonitor windowMonitor,
                       AudioSwitcher audioSwitcher,
                       IAudioDeviceLister activeDeviceLister,
                       ShowError showError)
 {
     _windowMonitor      = windowMonitor;
     _audioSwitcher      = audioSwitcher;
     _activeDeviceLister = activeDeviceLister;
     _showError          = showError;
 }
Ejemplo n.º 4
0
 public ProfileManager(ForegroundProcess foregroundProcess, AudioSwitcher audioSwitcher)
 {
     _foregroundProcess    = foregroundProcess;
     _audioSwitcher        = audioSwitcher;
     _profileByApplication =
         AppConfigs.Configuration.ProfileSettings
         .Where((setting) => setting.ApplicationPath != null)
         .ToDictionary(setting => setting.ApplicationPath.ToLower());
     _profileByHotkey = AppConfigs.Configuration.ProfileSettings
                        .Where((setting) => setting.HotKey != null)
                        .ToDictionary(setting => setting.HotKey);
 }
Ejemplo n.º 5
0
 public ProfileManager(ForegroundProcess foregroundProcess,
                       AudioSwitcher audioSwitcher,
                       IAudioDeviceLister activeDeviceLister,
                       ShowError showError)
 {
     _foregroundProcess    = foregroundProcess;
     _audioSwitcher        = audioSwitcher;
     _activeDeviceLister   = activeDeviceLister;
     _showError            = showError;
     _profileByApplication =
         AppConfigs.Configuration.ProfileSettings
         .Where((setting) => setting.ApplicationPath != null)
         .ToDictionary(setting => setting.ApplicationPath !.ToLower());
     _profileByHotkey =
         AppConfigs.Configuration.ProfileSettings
         .Where((setting) => setting.HotKey != null)
         .ToDictionary(setting => setting.HotKey) !;
 }
    void Start()
    {
        pauser = GameObject.FindObjectOfType<AudioSwitcher>();
        tutorialPanel = transform.Find("Help Text").gameObject;
        tutorialPanel.SetActive(false);
        title = tutorialPanel.transform.Find("Title").GetComponent<Text>();
        body = tutorialPanel.transform.Find("Body").GetComponent<Text>();

        tutorialPanel.transform.Find("Button").GetComponent<Button>().onClick.AddListener(() => {
            if (isOpen == true)
            {
                pauser.RemovePause();
                isOpen = false;
            }
            tutorialPanel.SetActive(false);
        });

        showText("You Are What You Eat", "As the most powerful wizard in town, you usually spend your days brewing potions in your tower.  But this morning you realized you had run out of ingredients!  Guess you'll have to make do with whatever they have at the local grocery store.");
    }
Ejemplo n.º 7
0
    void Start()
    {
        pauser        = GameObject.FindObjectOfType <AudioSwitcher>();
        tutorialPanel = transform.Find("Help Text").gameObject;
        tutorialPanel.SetActive(false);
        title = tutorialPanel.transform.Find("Title").GetComponent <Text>();
        body  = tutorialPanel.transform.Find("Body").GetComponent <Text>();

        tutorialPanel.transform.Find("Button").GetComponent <Button>().onClick.AddListener(() => {
            if (isOpen == true)
            {
                pauser.RemovePause();
                isOpen = false;
            }
            tutorialPanel.SetActive(false);
        });

        showText("You Are What You Eat", "As the most powerful wizard in town, you usually spend your days brewing potions in your tower.  But this morning you realized you had run out of ingredients!  Guess you'll have to make do with whatever they have at the local grocery store.");
    }
Ejemplo n.º 8
0
 public MicrophoneMuteToggler(AudioSwitcher switcher, NotificationManager.NotificationManager notificationManager)
 {
     _switcher            = switcher;
     _notificationManager = notificationManager;
 }