From 40a2cbb83c4d0485ed52d4d87db78bb3c0e3fcbb Mon Sep 17 00:00:00 2001 From: River Jiang <546213258@qq.com> Date: Wed, 21 Oct 2020 19:35:55 +0800 Subject: [PATCH] 隐藏子弹条. --- Assets/Scripts/TowerDefense/Towers/Tower.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/TowerDefense/Towers/Tower.cs b/Assets/Scripts/TowerDefense/Towers/Tower.cs index 8e07dbb..4aa7604 100644 --- a/Assets/Scripts/TowerDefense/Towers/Tower.cs +++ b/Assets/Scripts/TowerDefense/Towers/Tower.cs @@ -72,7 +72,7 @@ /// 塔防对应的充能状态. /// </summary> public ETowerFuntion eTowerFuntion = ETowerFuntion.NULL; - protected BulletUICtl bulletCtl = null; + public BulletUICtl bulletCtl = null; /// <summary> /// The tower levels associated with this tower @@ -115,6 +115,7 @@ /// 攻击增加 /// </summary> public float attackRise { get; set; } + /// <summary> /// 塔防数据的局内升级 @@ -200,12 +201,13 @@ if (this.eTowerFuntion == ETowerFuntion.BULLET) { BulletUICtl buc = this.placementArea.GetBulletUICtl(gridPosition.x); + /* if (buc) { buc.gameObject.SetActive(true); this.bulletCtl = buc; buc.resetToMaxBullet(); - } + }*/ } } -- Gitblit v1.9.1