Exemplo n.º 1
0
    void CreateShape()
    {
        //Create some shapes
        Shape instance = shapeFactory.GetTr(transform, 1, 2);

        spawnZone.ConfigureSpawn(instance);
        instance.SetColor(random_green());
        lTemp    = new Vector3(0f, 0f, 0f);
        lTemp.x += Random.Range(-0.5f, 0.5f);
        lTemp.y += 2f;
        lTemp.z += Random.Range(-0.5f, 0.5f);
        instance.SetPosition(lTemp);
        instance.Velocity = transform.up * Random.Range(0.8f, 1.8f);
        shapes.Add(instance);
    }
Exemplo n.º 2
0
 public void ConfigureSpawn(Shape shape)
 {
     spawnZone.ConfigureSpawn(shape);
 }
Exemplo n.º 3
0
 public void ConfigureSpawn(Shape inShape)
 {
     spawnZone.ConfigureSpawn(inShape);
 }