выходит ошибка "MoveCamera.Creat()'': не все ветви кода возвращают значение
using System.Collections.Generic;
using UnityEngine;
public class MoveCamera : MonoBehaviour {
public GameObject Player;
public GameObject Wall;
public GameObject A;
void Update () {
transform.position = new Vector3 (0f, Player.transform.position.y, 83f);
}
void FixedUpdate () {
if (Player.transform.position.y >= A.transform.position.y) {
StartCoroutine (Creat ());
}
}
IEnumerator Creat () {
Instantiate (Wall, new Vector3 (0f, Wall.transform.position.y + 10f, 114f), Quaternion.identity);
}
}