Exemplo n.º 1
0
 public void RemoveTower(EntityTowerBase tower)
 {
     if (this.m_TowerList.Contains(tower))
     {
         this.m_TowerList.Remove(tower);
         tower.DeInit();
     }
 }
Exemplo n.º 2
0
 public void AddTower(EntityTowerBase tower)
 {
     if (!this.m_TowerList.Contains(tower))
     {
         this.m_TowerList.Add(tower);
     }
     else
     {
         object[] args = new object[] { tower.name };
         SdkManager.Bugly_Report("EntityManager.cs", Utils.FormatString("AddTower is already contains {0}", args));
     }
 }