using System; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.Serialization; using UnityEngine.UI; namespace HK.Keyboard { public class FontsChange : MonoBehaviour { [SerializeField] List fonts = new List(); public GameObject item; public Keyboard keyboard; private void Awake() { keyboard = GetComponentInParent(); foreach (var tmpAsset in fonts) { var o = GameObject.Instantiate(item, item.transform.parent); o.SetActive(true); o.name = tmpAsset.name; o.GetComponentInChildren().font = tmpAsset; o.GetComponent