Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
        private UserSettings()
        {
            ClickSettings = new ClickSettings()
            {
                WaveType              = SignalGeneratorType.Sin,
                AccentClickFreq       = 4000,
                ClickFreq             = 2000,
                PrecountBarBeats      = 4,
                PrecountBarNoteLength = 4
            };

            Theme = new PaletteHelper().GetTheme();
        }
Esempio n. 4
0
 public ClickEvent(ClickSettings clickSettings)
 {
     this.clickSettings = clickSettings;
 }