Exemple #1
0
        public ShopButton(Texture2D sprite, Vector2 center, GameState clickState, int costMoney, ShopButtonState buttonState, string colorName) : base(sprite, center, clickState)
        {
            ImagesPerRow     = GameConstants.IMAGES_PER_ROW_FOR_SHOP_BUTTON;
            this.sprite      = sprite;
            this.clickState  = clickState;
            this.costMoney   = costMoney;
            this.buttonState = buttonState;
            this.colorName   = colorName;

            //initialize button
            Initialize(center);
        }
Exemple #2
0
 public void SetState(ShopButtonState state)
 {
     State = state;
 }