From 09053388ef6d58a7de59fab450c11ee0affbceb2 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Fri, 20 Nov 2020 11:50:55 +0800
Subject: [PATCH] Merge commit 'fafc11ad74601a1c4e4b2e28165af25bd19bb5a9' into master

---
 Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs b/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs
index 57aedeb..b125abb 100644
--- a/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs
+++ b/Assets/Scripts/TowerDefense/Towers/Placement/TowerPlacementGridEndless.cs
@@ -16,7 +16,7 @@
     [RequireComponent(typeof(BoxCollider))]
     public class TowerPlacementGridEndless : MonoBehaviour, IPlacementArea
     {
-        public static float GRID_OPENCASH = 100;
+        public static float GRID_OPENCASH = 200;
 
         /// <summary>
         /// Prefab used to visualise the grid.
@@ -642,7 +642,7 @@
             m_arrTGO = new EndlessTowerGridOpen[dimensions.x, dimensions.y];
 
             GameObject container = GameObject.Find("BuyButtonContainer");
-            TowerPlacementGridEndless.GRID_OPENCASH = 100;
+            TowerPlacementGridEndless.GRID_OPENCASH = 200;
             //Debug.Log("修改了数值:" + TowerPlacementGridEndless.GRID_OPENCASH);
             //float[] xup = { -0.6f, -0.3f, 0, 0.3f, 0.6f };
             for (int x = 0; x < dimensions.x; ++x)
@@ -674,7 +674,7 @@
                     if (tgo)
                     {
                         tgo.SetBuyBtnInfo(x, y, this);
-                        tgo.cashText.SetText(TowerPlacementGrid.GRID_OPENCASH_SELF.ToString());
+                        tgo.cashText.SetText(TowerPlacementGridEndless.GRID_OPENCASH.ToString());
                         m_arrTGO[x, y] = tgo;
                     }
                 }
@@ -812,7 +812,7 @@
 
         public void updateGridOpenCoin(int ix, int iy)
         {
-            GRID_OPENCASH = Mathf.Floor(GRID_OPENCASH * 1.2f);
+            GRID_OPENCASH = Mathf.Floor(GRID_OPENCASH * 1.25f);
 
             for (int x = 0; x < dimensions.x; x++)
             {

--
Gitblit v1.9.1