28 private void OnValidate()
33 btn = transform.GetComponentInChildren<Button>();
34 label =
btn.transform.GetChild(0).gameObject.GetComponent<TextMeshProUGUI>();
37 if (
btn.transform.childCount > 1)
39 shiftedLabel =
btn.transform.GetChild(1).gameObject.GetComponent<TextMeshProUGUI>();
54 KeyboardController.OnShifted +=
OnShifted;
58 KeyboardController.OnShifted -=
OnShifted;
63 label.gameObject.SetActive(!value);