예제 #1
0
public void Start()
	{
		Boids = (

(Enumerable.Range(0,(1) + ((10) - (0))).ToList<System.Int32>()).Select(__ContextSymbol0 => new { ___b00 = __ContextSymbol0 })
.Select(__ContextSymbol1 => new Boid(new UnityEngine.Vector3(UnityEngine.Random.Range(-10,10),UnityEngine.Random.Range(-10,10),0f)))
.ToList<Boid>()).ToList<Boid>();
		BoidBoss = new BoidLeader(new UnityEngine.Vector3(0f,10f,0f));
		
}
예제 #2
0
public void Start()
	{
		Spheres = (

(Enumerable.Range(-1,(1) + ((1) - (-1))).ToList<System.Int32>()).Select(__ContextSymbol2 => new { ___x00 = __ContextSymbol2 })
.SelectMany(__ContextSymbol3=> (Enumerable.Range(-1,(1) + ((1) - (-1))).ToList<System.Int32>()).Select(__ContextSymbol4 => new { ___y00 = __ContextSymbol4,
                                                      prev = __ContextSymbol3 })
.Select(__ContextSymbol5 => new Sphere(new UnityEngine.Vector3((__ContextSymbol5.prev.___x00) * (20f),(__ContextSymbol5.___y00) * (20f),0f)))
.ToList<Sphere>())).ToList<Sphere>();
		Boids = (

(Enumerable.Range(1,(1) + ((40) - (1))).ToList<System.Int32>()).Select(__ContextSymbol0 => new { ___a00 = __ContextSymbol0 })
.Select(__ContextSymbol1 => new Boid(new UnityEngine.Vector3(UnityEngine.Random.Range(-10,10),UnityEngine.Random.Range(-10,10),0f)))
.ToList<Boid>()).ToList<Boid>();
		BoidBoss = new BoidLeader(new UnityEngine.Vector3(-10f,0f,0f));
		
}