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; }
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; }