Ejemplo n.º 1
0
 public bool Equals(MappedKeyCode other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.code == other.code);
 }
Ejemplo n.º 2
0
        private KeyCode GetKeyCode(char character)
        {
            // Get from cache if it was taken before to prevent unnecessary enum parse
            KeyCode code;
            // Cast to it's integer value
            int alphaValue = character;

            code = (KeyCode)System.Enum.Parse(typeof(KeyCode), alphaValue.ToString());
            return(code);
        }
Ejemplo n.º 3
0
 public void InitializeKeyCode(MappedKeyCode code)
 {
     this.text.text = code.label;
     capturing      = false;
     this.code      = code;
 }