public ValueWidget(GameObject obj) : base(obj) { Value = new GOLabel(obj.GetChild(0)); Slash = new GOLabel(obj.GetChild(1)); MaxValue = new GOLabel(obj.GetChild(2)); Background = new GOThinBackground(obj.GetChild(3)); }
public Character(GameObject obj) : base(obj) { Name = new GOLabel(obj.GetChild(0)); HP = new GOLabel(obj.GetChild(1)); MP = new GOLabel(obj.GetChild(2)); ATBBar = new GOProgressBar(obj.GetChild(3)); TranceBar = new GOProgressBar(obj.GetChild(4)); Highlight = new GOSprite(obj.GetChild(5)); Label = obj.GetComponent <UILabel>(); ButtonGroup = obj.GetComponent <ButtonGroupState>(); ButtonColor = obj.GetComponent <UIButtonColor>(); EventListener = obj.EnsureExactComponent <UIEventListener>(); }
public CaptionBackground(GameObject obj) : base(obj) { Caption = new GOLabel(obj.GetChild(2)); }