Example #1
0
        public static StreamDeckPanel GetInstance(GamingPanel gamingPanel)
        {
            foreach (var streamDeckPanel in StreamDeckPanels)
            {
                if (streamDeckPanel.BindingHash == gamingPanel.BindingHash)
                {
                    return(streamDeckPanel);
                }
            }

            return(null);
        }
 public static void DetachForwardPanelEventListener(GamingPanel gamingPanel)
 {
     OnForwardPanelEventChanged -= gamingPanel.SetForwardPanelEvent;
 }
Example #3
0
 private void Start()
 {
     GameManager.GetInstance().OnGameOver += GameOver;
     gp = FindObjectOfType <GamingPanel>();
 }
 public static void DetachSettingsConsumerListener(GamingPanel gamingPanel)
 {
     OnProfileEvent          -= gamingPanel.ProfileEvent;
     OnSavePanelSettings     -= gamingPanel.SavePanelSettings;
     OnSavePanelSettingsJSON -= gamingPanel.SavePanelSettingsJSON;
 }