protected virtual void FormatData() { if (photonView.isMine) { SceneManager.AddMy_TowerList(this); if (originalTurretData.ATK_Level != TurretData.myTowerAtkLevel || originalTurretData.DEF_Level != TurretData.myTowerDefLevel) { originalTurretData = TurretData.instance.getTowerData(DataName); } } else { SceneManager.AddEnemy_TowerList(this); if (originalTurretData.ATK_Level != TurretData.enemyTowerAtkLevel || originalTurretData.DEF_Level != TurretData.enemyTowerDefLevel) { originalTurretData = TurretData.instance.getEnemyTowerData(DataName); } } turretData = originalTurretData; deadManager.ifDead(false); turretData.UI_Hp = turretData.UI_maxHp; turretData.Fad_thermalEnergy = 0; healthBar.fillAmount = 1; Fad_energyBar.fillAmount = 0.0f; }