Ejemplo n.º 1
0
 private IEnumerator LaunchAtInterval(MortarAttack mortar, int mortarCount, float interval)
 {
     while (true)
     {
         mortar.Launch(mortarCount);
         yield return(new WaitForSeconds(interval));
     }
 }
Ejemplo n.º 2
0
	private IEnumerator LaunchAtInterval( MortarAttack mortar, int mortarCount, float interval )
	{
		while ( true )
		{
			mortar.Launch( mortarCount );
			yield return new WaitForSeconds( interval );
		}
	}