chenxin
2020-12-12 7d40c0103dd36587180a8326415cb2fe1b4912d1
Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
@@ -264,6 +264,15 @@
                needClickPS.Stop();
        }
    }
    public void SetPS(bool isOn)
    {
        if (needClickPS.gameObject.activeSelf != isOn)
        {
            needClickPS.gameObject.SetActive(isOn);
        }
    }
    float countDownTime = 0f;
    float countDownLimit = 5f;
    public ParticleSystem needClickPS;//提示点击按钮
@@ -331,16 +340,8 @@
        if (gameUI.isBuilding)
            gameUI.CancelGhostPlacement();
        // if (EndlessUIStart.instance.GameStartTime >= JsonDataCenter.DOUBLE_GEM_TIME)
        // {
        //     if (level == -1)
        level = Mathf.Min(EndlessGameUI.instance.MinLevel, 1);
        // }
        // else
        // {
        //     if (level == -1)
        //         level = 0;
        // }
        if (level == -1)
            level = Mathf.Min(EndlessGameUI.instance.MinLevel, 1);
        return gameUI.RandomPlaceTower(tower, posx, posy, level, cost, false, isFirstAppear);
    }