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