public ButtonBack(GameObject obj) : base(obj) { Button = obj.GetExactComponent <UIButton>(); BoxCollider = obj.GetExactComponent <BoxCollider>(); OnScreenButton = obj.GetExactComponent <OnScreenButton>(); Background = new GOThinSpriteBackground(obj.GetChild(0)); Highlight = new GOSprite(obj.GetChild(1)); Icon = new GOSprite(obj.GetChild(2)); }
public ButtonRun(GameObject obj) : base(obj) { UIButton[] buttons = obj.GetExactComponents <UIButton>(); Button1 = buttons[0]; Button2 = buttons[1]; BoxCollider = obj.GetExactComponent <BoxCollider>(); Background = new GOThinSpriteBackground(obj.GetChild(0)); Highlight = new GOSprite(obj.GetChild(1)); Icon = new GOSprite(obj.GetChild(2)); }