Example #1
0
        public Bot()
        {
            Active = Left = new BotButton();
            Right  = new BotButton();

            Height = 130;
            Width  = 130;

            AddRangeInternal(new Drawable[] {
                Texture = new Sprite {
                    RelativeSizeAxes = Axes.Both,
                    FillMode         = FillMode.Fill
                }.Center()
            });
        }
Example #2
0
 void Swap()
 {
     Active.Release();
     Active    = Inactive;
     IsHolding = false;
 }