chenxin
2020-11-27 2a1575f0dd35ad089de454588b19b8504d13acb4
buff初始化不算新手关,新手关不会出现buff
15 files modified
24878 ■■■■■ changed files
And/GemBattle.apk patch | view | raw | blame | history
Assets/Materials/Guide/RectGuidance.mat 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/BlinkTower_0.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/BlinkTower_1.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/BlinkTower_2.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/BlinkTower_3.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/BlinkTower_4.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/Towers/WoodTower/WProjectile_4.prefab 24826 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Common/GameConfig.cs 5 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Data/EndlessPortData.cs 9 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Guide/GuidePanel.cs 10 ●●●● patch | view | raw | blame | history
Assets/Scripts/Json/JsonDataCenter.cs 1 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs 8 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs 1 ●●●● patch | view | raw | blame | history
Assets/TextMesh Pro/Examples & Extras/Resources/Fonts & Materials/supercell-magic SDF 1.asset 6 ●●●● patch | view | raw | blame | history
And/GemBattle.apk
Binary files differ
Assets/Materials/Guide/RectGuidance.mat
@@ -83,7 +83,7 @@
    - _UseUIAlphaClip: 0
    - _ZWrite: 1
    m_Colors:
    - _Center: {r: 459, g: 280, b: 0, a: 0}
    - _Center: {r: 455, g: -150, b: 0, a: 0}
    - _Color: {r: 1, g: 1, b: 1, a: 1}
    - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
  m_BuildTextureStacks: []
Assets/Prefabs/Towers/WoodTower/BlinkTower_0.prefab
@@ -43677,7 +43677,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 5645412422946162502}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalPosition: {x: -0.12, y: 0, z: 0}
  m_LocalScale: {x: 0.64, y: 0.64, z: 0.64}
  m_Children:
  - {fileID: 4457715277627928}
Assets/Prefabs/Towers/WoodTower/BlinkTower_1.prefab
@@ -62570,7 +62570,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 3408343651274775140}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalPosition: {x: -0.12, y: 0, z: 0}
  m_LocalScale: {x: 0.64, y: 0.64, z: 0.64}
  m_Children:
  - {fileID: 930484069627965929}
Assets/Prefabs/Towers/WoodTower/BlinkTower_2.prefab
@@ -72506,7 +72506,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 4838457772518715291}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalPosition: {x: -0.12, y: 0, z: 0}
  m_LocalScale: {x: 0.64, y: 0.64, z: 0.64}
  m_Children:
  - {fileID: 4726805076667173648}
Assets/Prefabs/Towers/WoodTower/BlinkTower_3.prefab
@@ -72394,7 +72394,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 5142262174865511149}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalPosition: {x: -0.12, y: 0, z: 0}
  m_LocalScale: {x: 0.64, y: 0.64, z: 0.64}
  m_Children:
  - {fileID: 7208623104397428330}
Assets/Prefabs/Towers/WoodTower/BlinkTower_4.prefab
@@ -105821,7 +105821,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 6237817093940163391}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalPosition: {x: -0.12, y: 0, z: 0}
  m_LocalScale: {x: 0.64, y: 0.64, z: 0.64}
  m_Children:
  - {fileID: 3053498307503446518}
Assets/Prefabs/Towers/WoodTower/WProjectile_4.prefab
Diff too large
Assets/Scripts/Common/GameConfig.cs
@@ -89,6 +89,11 @@
        /// </summary>
        public static bool CreateRandomTower = true;
        /// <summary>
        /// 是否是从新手开始闯关的
        /// </summary>
        public static bool IsNewbieStart;
        #region 各个塔的偏移量
        public static Vector3 fireScale = new Vector3(1.92f, 1.92f, 2.208f);
        public static Vector3 woodScale = new Vector3(1.5f, 1.5f, 2.82f);
Assets/Scripts/Data/EndlessPortData.cs
@@ -64,6 +64,12 @@
        /// <value></value>
        private static int maxLevel { get; set; }
        /// <summary>
        /// 新手总关卡数
        /// </summary>
        /// <value></value>
        public static int NewbieTotalLevel { get; private set; }
        public static int MaxLevel
        {
            get { return maxLevel; }
@@ -100,6 +106,9 @@
                {
                    preLevel = data.level;
                    ++maxLevel;
                    if (data.level < 0)
                        ++NewbieTotalLevel;
                }
                EndlessPortConfig param = new EndlessPortConfig();
Assets/Scripts/Guide/GuidePanel.cs
@@ -52,7 +52,7 @@
    RectTransform dragHandImg;//拖动标识手指
    Button skillBtn;//
    Vector2 skillBtnPos = new Vector2(459, 280);
    Vector2 skillBtnPos = new Vector2(455, -150);
    private Image warningImg;//大波敌人来袭提示
    /// <summary>
@@ -76,7 +76,7 @@
        backgroundImg = transform.Find("Button").GetComponent<Image>();
        skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBtn").GetComponent<Button>();
        skillBtn = GameObject.Find("UICamera/BottomCanvas/Panel/Energy/FireSkillBg/SkillBtn").GetComponent<Button>();
        skillBtn.interactable = false;
        towerBuyBtn = GameObject.Find("UICamera/BottomCanvas/Panel/TowerBuyBtn");
        RectTransform tmpTs = towerBuyBtn.GetComponent<RectTransform>();
@@ -581,7 +581,7 @@
        {
            image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect;
        }
        else if (target.gameObject.name == "FireSkillBtn")
        else if (target.gameObject.name == "SkillBtn")
        {
            image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect;
        }
@@ -621,7 +621,7 @@
        {
            image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect;
        }
        else if (target.gameObject.name == "FireSkillBtn")
        else if (target.gameObject.name == "SkillBtn")
        {
            image_Rim_Rect.anchoredPosition = skillBtnPos - tmpOffect;
        }
@@ -682,7 +682,7 @@
        {
            maskObj.InitForCamera(target, towerBuyBtnPos, x, y);
        }
        else if (target.gameObject.name == "FireSkillBtn")
        else if (target.gameObject.name == "SkillBtn")
        {
            maskObj.InitForCamera(target, skillBtnPos, x, y);
        }
Assets/Scripts/Json/JsonDataCenter.cs
@@ -263,6 +263,7 @@
        {
            int guide = PlayerPrefs.GetInt("GemBattleGuide");
            GameConfig.IsNewbie = guide == 0;
            GameConfig.IsNewbieStart = GameConfig.IsNewbie;
            EndlessEnemyData.Init();
            EndlessBuffData.Init();
            EndlessBossData.Init();
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs
@@ -504,7 +504,6 @@
        public void NewbieUpdateLevel()
        {
            ++CurrentLevel;
            EndlessBuffData.InitEndlessBuffPool(CurrentLevel);
            WaveManager.InitPort(CurrentLevel);
            IsAllWaveCompleted = false;
            EndlessUIStart.instance.Restart();
@@ -528,14 +527,15 @@
        {
            if (EndlessGameUI.instance.state == EndlessGameUI.State.GameOver) return;
            EndlessBuffData.InitEndlessBuffPool(CurrentLevel);
            if (CurrentLevel == startLevel)
                WaveManager.InitPort(CurrentLevel);
            if (!GameConfig.IsNewbie)
            {
                // buff池的初始化要从正式关卡算起,不算新手关
                EndlessBuffData.InitEndlessBuffPool(GameConfig.IsNewbieStart ? CurrentLevel - EndlessPortData.NewbieTotalLevel : CurrentLevel);
                ShowSelectBuffUI();
            }
            else
            {
                EndlessUIStart.instance.Restart();
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -154,7 +154,6 @@
    private void CheckIsNewbie()
    {
        //GameConfig.IsNewbie = false;
        if (GameConfig.IsNewbie)
        {
            Debug.Log("开始新手引导");
Assets/TextMesh Pro/Examples & Extras/Resources/Fonts & Materials/supercell-magic SDF 1.asset
@@ -112,11 +112,11 @@
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
  m_Name: supercell-magic SDF
  m_Name: supercell-magic SDF 1
  m_EditorClassIdentifier: 
  hashCode: -853453286
  hashCode: -1697691509
  material: {fileID: -3548855653558765056}
  materialHashCode: -1155586438
  materialHashCode: 1170809675
  m_Version: 1.1.0
  m_SourceFontFileGUID: 8294854c9f5a3d74386c04248156e896
  m_SourceFontFile_EditorRef: {fileID: 0}