using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class loading : MonoBehaviour
{
public int SceneID;
// Start is called before the first frame update
void Start()
{
StartCoroutine(AsyncLoad());
}
IEnumerator AsyncLoad()
{
AsyncOperation operation = SceneManager.LoadSceneAsync(SceneID);
}
}
ошибка в юнити:
Assets\Scripts\loading.cs(16,17): error CS0161: 'loading.AsyncLoad()': not all code paths return a value