示例#1
0
        /// <summary>
        /// Creates the Building Dialogue
        /// </summary>
        protected override void OnButtonClick()
        {
            if (allowBuilding)
            {
                uIButton = new UIButton(buttonX, buttonY, this, graphicsDevice, player, level);
                level.SetUIButton(uIButton);
            }

            else
            {
                Upgrade();
            }
        }