public T GetClickedOfType <T> () where T : IClickable { // TODO: use IsAssignableFrom ClickSettings c = clickSettings.Find(x => x.clickable != null && x.clickable.GetType() == typeof(T)); return(c == null ? default(T) : (T)c.clickable); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }
private UserSettings() { ClickSettings = new ClickSettings() { WaveType = SignalGeneratorType.Sin, AccentClickFreq = 4000, ClickFreq = 2000, PrecountBarBeats = 4, PrecountBarNoteLength = 4 }; Theme = new PaletteHelper().GetTheme(); }
public ClickEvent(ClickSettings clickSettings) { this.clickSettings = clickSettings; }