Need help creating random flashing Light for distant explotion, CS0664: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type

Hi guys, I have my game menue, and im trying to create a lashing light to create distant explosion effect and need help creating a random flashing effect.

using UnityEngine;
using System.Collections;

public class Lightflash : MonoBehaviour {

	public Light testLight; 
	public float FlashIntensity = 8.0;
	public float FlashTime = 0.5f;
	public float FlashZero = 0;


	void Start() { 
		testLight.intensity = 0f; 
	}


	void Update () {
		//make light flash from ) to 8.0  over time.
		testLight.intensity = FlashIntensity * FlashTime * Time.deltaTime;  

		// once lihgt is at Maximum strength, hold for a short time.
		StartCoroutine(Flashtime());

	}


	void Dullflash(){
		// decrease light intensity from maximum amount to zero.
		testLight.intensity = FlashZero - FlashTime * Time.deltaTime;

	}





	IEnumerator Flashtime (){
		yield return new WaitForSeconds(0.3);
		Dullflash;
	}

}

Your 8th line has it right. Your 7th and 38th do not.

// Correct
public float FlashTime = 0.5f;

// Incorrect
public float FlashIntensity = 8.0;
yield return new WaitForSeconds(0.3);

Those two lines need an ‘f’ added after the number for correct formatting in C#.