I need a light to flash once when the Fire1 button is hit once-
I have this code in C#
if(Input.GetButtonDown("Fire1"))
{
if(BlastFlash.enabled){
BlastFlash.enabled = false;
}
if(!BlastFlash.enabled){
BlastFlash.enabled = true;
}
What do I need to do to make this happen??