23 lines
365 B
C#
23 lines
365 B
C#
using UnityEngine.UI;
|
|
|
|
namespace VRKeyboard.Utils
|
|
{
|
|
public class Shift : Key
|
|
{
|
|
private Text subscript;
|
|
|
|
public override void Awake()
|
|
{
|
|
base.Awake();
|
|
subscript = base.transform.Find("Subscript").GetComponent<Text>();
|
|
}
|
|
|
|
public override void ShiftKey()
|
|
{
|
|
string text = key.text;
|
|
key.text = subscript.text;
|
|
subscript.text = text;
|
|
}
|
|
}
|
|
}
|