void OnTriggerEnter(Collider other) { if (other.tag == "fire") { _velocityFactor = FireVelocityFactor; _squad.AudioManager.PlayFireZoneClip(); _zombieMover.MovementParameters.MaxVelocity *= _velocityFactor; _zombieMover.MovementParameters.DefaultMaxVelocity *= _velocityFactor; AudioManager.PlayFired(); _zombieAI.BeingBurned(); } else if (other.tag == "ice") { _velocityFactor = IceVelocityFactor; _squad.AudioManager.PlayIceZoneClip(); _zombieMover.MovementParameters.MaxVelocity *= _velocityFactor; _zombieMover.MovementParameters.DefaultMaxVelocity *= _velocityFactor; } else if (other.tag == "land") { _velocityFactor = LandVelocityFactor; _squad.AudioManager.PlayLandZoneClip(); _zombieMover.MovementParameters.MaxVelocity *= _velocityFactor; _zombieMover.MovementParameters.DefaultMaxVelocity *= _velocityFactor; } }