From 944950c86ab3be21c22b7c15039cf2e572efdc90 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Tue, 01 Dec 2020 15:34:32 +0800
Subject: [PATCH] 删除无用代码

---
 Assets/Scripts/TowerDefense/Towers/TowerLevel.cs |   78 --------------------------------------
 1 files changed, 1 insertions(+), 77 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/Towers/TowerLevel.cs b/Assets/Scripts/TowerDefense/Towers/TowerLevel.cs
index 5d662ff..b4a9746 100644
--- a/Assets/Scripts/TowerDefense/Towers/TowerLevel.cs
+++ b/Assets/Scripts/TowerDefense/Towers/TowerLevel.cs
@@ -1,5 +1,4 @@
 using System.Collections.Generic;
-using ActionGameFramework.Health;
 using Core.Health;
 using KTGMGemClient;
 using TowerDefense.Affectors;
@@ -21,24 +20,9 @@
         public TowerPlacementGhost towerGhostPrefab;
 
         /// <summary>
-        /// Build effect gameObject to instantiate on start
-        /// </summary>
-        //public GameObject buildEffectPrefab;
-
-        /// <summary>
         /// 升级特效
         /// </summary>
         public GameObject UpgradeEffectPrefab;
-
-        /// <summary>
-        /// 当前的Level对应的DamagerData.
-        /// </summary>
-        public Damager levelDamager;
-
-        /// <summary>
-        /// Reference to scriptable object with level data on it
-        /// </summary>
-        public TowerLevelData levelData;
 
         /// <summary>
         /// The parent tower controller of this tower
@@ -141,55 +125,6 @@
         public LayerMask mask { get; protected set; }
 
         /// <summary>
-        /// Gets the cost value
-        /// </summary>
-        public int cost
-        {
-            get { return levelData.cost; }
-        }
-
-        /// <summary>
-        /// Gets the sell value
-        /// </summary>
-        public int sell
-        {
-            get { return levelData.sell; }
-        }
-
-        /// <summary>
-        /// Gets the max health
-        /// </summary>
-        public int maxHealth
-        {
-            get { return levelData.maxHealth; }
-        }
-
-        /// <summary>
-        /// Gets the starting health
-        /// </summary>
-        public int startingHealth
-        {
-            get { return levelData.startingHealth; }
-        }
-
-        /// <summary>
-        /// Gets the tower description
-        /// </summary>
-        public string description
-        {
-            get { return levelData.description; }
-        }
-
-        /// <summary>
-        /// Gets the tower description
-        /// </summary>
-        public string upgradeDescription
-        {
-            get { return levelData.upgradeDescription; }
-        }
-
-
-        /// <summary>
         /// Initialises the Effects attached to this object
         /// </summary>
         public virtual void Initialize(Tower tower, LayerMask enemyMask, IAlignmentProvider alignment)
@@ -201,12 +136,6 @@
                 effect.Initialize(alignment, mask);
                 effect.towerPtr = tower;
                 AttackAffector attackAffector = effect.GetComponent<AttackAffector>();
-
-                // if (attackAffector.projectile != null)
-                // {
-                //     Damager damager = attackAffector.projectile.gameObject.GetComponent<Damager>();
-                //     damager.TowerAttributeId = tower.attributeId;
-                // }
             }
             m_ParentTower = tower;
             Transform starTs = transform.Find("Star");
@@ -214,11 +143,8 @@
             starTs.localRotation = Quaternion.Euler(60, 180, 0);
         }
 
-        Vector3 normalScale;
-
         private void Awake()
         {
-            normalScale = new Vector3(1.5f, 1.5f, 1.5f);
             canPlaceMesh.enabled = false;
         }
 
@@ -304,7 +230,6 @@
             }
         }
 
-
         /// <summary>
         /// Returns a list of affectors that implement ITowerRadiusVisualizer
         /// </summary>
@@ -350,10 +275,9 @@
         {
         }
 
-
         /// <summary>
         /// 获取当前TowerLevel对应的AttackRise.
-        /// </summary>
+        /// /// </summary>
         public float attackRise { get { return m_ParentTower.attackRise; } }
 
         public void OnAfterDeserialize()

--
Gitblit v1.9.1