С[
Когда главный герой умирает камера на какое-то время теряет его из вида
Как можно игнорировать эту ошибку?
IndexOutOfRangeException: Index was outside the bounds of the array.
CinemachineController.Update ()
void Update() {
if (vcam.m_LookAt == null) {
GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
GameObject player = players[0];
vcam.m_Follow = player.transform;
vcam.m_LookAt = player.transform;
}
}