private void Awake()
 {
     if (this.InputDevice == null)
     {
         this.InputDevice = UnityEngine.Object.FindObjectOfType <InputDeviceScript>();
     }
 }
 public void UpdateSpriteType(InputDeviceType deviceType)
 {
     if (this.InputDevice == null)
     {
         this.InputDevice = UnityEngine.Object.FindObjectOfType <InputDeviceScript>();
     }
     if (deviceType == InputDeviceType.Gamepad)
     {
         this.MySprite.spriteName = this.GamepadName;
         if (this.MyLetter != null)
         {
             this.MyLetter.text = "";
             return;
         }
     }
     else
     {
         this.MySprite.spriteName = this.KeyboardName;
         if (this.MyLetter != null)
         {
             this.MyLetter.text = this.KeyboardLetter;
         }
     }
 }