ExplosionDamage.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
	void Update () {

		//Modify Transform Scale, to change explosion range.
		scale += velocity*Time.deltaTime;

		if(this.scale>this.maxScale) Destroy(this.gameObject);
		else this.transform.localScale = Vector3.one * this.scale;

	}
}
ExplosionDamage