Example #1
0
        /// <summary>
        /// Initializes the key.
        /// </summary>
        /// <param name="index">The letter index.</param>
        /// <param name="theme">The current theme.</param>
        /// <param name="set">The initial set of letters to use.</param>
        public void Initialize(int index, ColorTheme theme, KeySet set)
        {
            Awake();

            this.index = index;
            this.theme = theme;

            SetKeyText(set);
            r.material = theme.GetThemeValue(KeyState.Default);
        }
Example #2
0
 public void OnFocusEnter()
 {
     r.material = theme.GetThemeValue(KeyState.Focused);
 }