using Uigenx.Binding; using UnityEngine; namespace Game.UI.Generated { /// /// The hand written half of the generated screen. Everything here survives a re-export. /// public sealed partial class HudScreen { partial void OnCreate() { // Elements are resolved and the animator exists; bindings and actions are not connected yet. HealthLabel.text = "HP"; } partial void OnBind(IUgxDataSource source) { Subscriptions.Add(HudActions.OnPause(() => Debug.Log("[sample] pause"))); Subscriptions.Add(HudActions.OnUseItem(slot => Debug.Log("[sample] use item " + slot))); } partial void OnShow() { } partial void OnHide() { } } }