2075 / Unity / 2D / Генератор
public GameObject obj;
public int countHorizontal = 5;
public float stepHorizontal = 2f;
public float randHorizontal = 0.5f;
Vector3 tmp;
void Start()
{
Vector3 position = transform.position;
for (int i = 0; i < countHorizontal; i++)
{
tmp = new Vector3(Random.Range(-randHorizontal, randHorizontal), 0f, 0f);
Instantiate(obj, position + tmp, Quaternion.identity);
position += new Vector3(stepHorizontal, 0f);
}
}

a += 10;
Обертання
GameObject go = Instantiate(obj, position + tmp, Quaternion.Euler(0f, 0f, a));
Зміна кольору
go.GetComponent<SpriteRenderer>().color = new Color((a*0.2f)/100f, 1f - (a*0.2f) / 100f, 1f, 1f);