KeyStringCharButton.cs 625 B

12345678910111213141516171819
  1. // /******************************************************************************
  2. // * File: KeyStringCharButton.cs
  3. // * Copyright (c) 2023 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.
  4. // *
  5. // *
  6. // ******************************************************************************/
  7. using UnityEngine;
  8. using UnityEngine.UI;
  9. namespace QCHT.Samples.XRKeyboard
  10. {
  11. public class KeyStringCharButton : KeyStringButton
  12. {
  13. [SerializeField] private Text _character;
  14. public void SetMaj(bool maj) => _character.text = maj ? _character.text.ToUpper() : _character.text.ToLower();
  15. }
  16. }