public void OnSellButton(GameObject butObj, int pointerID = -1)
 {
     UITooltip.Hide();
     sTower.Sell();
     SelectControl.ClearUnit();
     Hide();
 }
Exemple #2
0
        public void OnSellButton(GameObject butObj = null, int index = -1)
        {
            if (UIMainControl.InTouchMode())
            {
                if (currentState != 1)
                {
                    ClearState();
                    OnHoverSellButton();
                    currentState = 1;
                    butSell.imgHighlight.enabled = true;
                    return;
                }
                else
                {
                    ClearState();
                    OnExitSellButton();
                }
            }

            currentTower.Sell();
            Hide();
        }
 public void OnSellButton()
 {
     currentTower.Sell();
     Hide();
 }
 public void OnSellButton()
 {
     currentTower.Sell();
     UI.ClearSelectedTower();
 }