private bool IsToggle(HologramType type) { HologramTypeChoiceButton button = GetChoice(type); if (button == null) { return(false); } return(button.ToggleButton.IsToggled); }
private HologramTypeChoiceButton GetChoice(HologramType type) { HologramTypeChoiceButton button = Buttons.FirstOrDefault(v => v.MyType == type); if (button == null) { Debug.LogError("Missing HologramTypeChoiceButton"); return(null); } return(button); }