Esempio n. 1
0
    public void UpdateTurret(TurretScript ts)
    {
        Debug.Log("升级防御塔!");

        if (ts.level == ts.maxLevel)
        {
            return;
        }

        if (stageController.gold >= ts.GetUpdateGold())
        {
            stageController.gold -= ts.GetUpdateGold();
            ts.LevelUp();

            AudioManager.instance.PlaySound("se_levelup");
        }
    }