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); }
public void ConfigureSpawn(Shape shape) { spawnZone.ConfigureSpawn(shape); }
public void ConfigureSpawn(Shape inShape) { spawnZone.ConfigureSpawn(inShape); }