public Button(Vector3 position, Vector3 size, ButtonOptions opts) : base(position, size, opts) { _opts = opts; if (_opts.Group != null) { _opts.Group.Add(this); } }
public Button(Rect bounds, float depth, ButtonOptions opts) : this(new Vector3(bounds.x, bounds.y, depth), new Vector2(bounds.width, bounds.height), opts) { }