using System; using System.Collections; using System.Collections.Generic; using Ichni.RhythmGame; using TMPro; using UniRx; using UnityEngine; namespace Ichni.Editor { public class DynamicUIHintText : DynamicUIElement { public TMP_Text text; public void SetContent(string content) { text.text = content; } public void SetUpdatingContent(Func content) { Observable.EveryUpdate().Subscribe(_ => text.text = content()).AddTo(gameObject); } } }