Unity double tap explanation

This is the code given by Unity docs for a double tap that makes a projectile. I would like to learn how this code works and if possible, how I can edit it even further, for example, make it a single tap instead of a double tap. Thanks

var projectile : GameObject;
function Update () {
	for (var i = 0; i < Input.touchCount; ++i) {
		if (Input.GetTouch(i).phase == TouchPhase.Began) {
			clone = Instantiate (projectile, transform.position, transform.rotation);

The code you post (copied from the docs for Input.GetTouch) does not require a double tap. The example looks to see if any touch has started, and fires the projectile. Most mobile devices support multi-touch, and the for() loop looks at each of the touches. There is a way to detect a double tap, and that’s to use: