How to make an enemy attack every few seconds

I was wondering how to make an enemy attack, and make it do so every few seconds. (using c#)

You should take a look at Coroutines

this can make what you want.