i have given a timer, to start from zero and end at 10th second and after 10th second timer should become 0 :     if (coinMag == true) 
    {
					
    Timer += 1 * Time.deltaTime;
				
					if (Timer >= 10) 
					{
						
				       coinMag = false;
						Timer = 0;
					}
				}

what i want is when the CoinMag is true the timer should start...i have intialized timer as public float Timer=0.0f; ..and after timer starts exactly after 10 seconds timer should be reinitialized to 0.