Beispiel #1
0
        void OnBuy()
        {
            int value     = (int)chooseSlider.value + 1;
            int totalCost = GetTotalCost(chooseSlider.value);

            //m_PunchAnim.Pause();
            if (warning.gameObject.active)
            {
                m_PunchAnim.Restart();
                return;
            }
            Constant.BuyToolById(m_idx, (int)chooseSlider.value + 1);
            Close();
        }