Assets/Scripts/TowerDefense/Affectors/AttackAffector.cs
@@ -260,7 +260,7 @@ float process = energyCalTime % 11.0f; int proint = (int)Math.Floor(process); proint += towerPtr.uiProOffset; towerPtr.energyCtl.SetEnergyProgress(proint); towerPtr.energyCtl.SetEnergyProcessFloat( process ); if (proint == 10) { fInEnergy = 5.0f; @@ -268,6 +268,9 @@ // 设置多倍攻击速度 fBackupTimer = m_FireTimer; m_FireTimer = m_FireTimer / 3.0f; towerPtr.uiProOffset = 0; towerPtr.PlayEnergyEffect(true); } } else @@ -282,6 +285,9 @@ // 恢复正常攻击速度 m_FireTimer = fBackupTimer; towerPtr.PlayEnergyEffect(false); } }