Персонаж раньше состоял из одного спрайта. Теперь он состоит из нескольких спрайтов, как сделать так, чтобы поворачивались все сразу по x? У меня есть эти строки:
public GameObject[] Player;
if (moveInput > 0)
{
Player = GetComponent<SpriteRenderer>().flipX = true;
}
if (moveInput > 0)
{
Player = GetComponent<SpriteRenderer>().flipX = false;
}
Выходит ошибка: Assets\scripts\player\PlayerSpeed.cs(39,22): error CS0029: Cannot implicitly convert type 'bool' to 'UnityEngine.GameObject[]'