error CS1503: Argument 1 : cannot convert from 'method group' to 'strint' помогите пж юнити

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
    
public class Loading : MonoBehaviour
{
    public int sceneID;
    
    public Slider loadSlider;
    private void Start()
    {
        StartCoroutine(LoadNextScene);
    }
    
    IEnumerator LoadNextScene()
    {
        AsyncOperation oper = Application.LoadLevelAsync(sceneID);
        while (!oper.isDone)
        {
            float progress = oper.progress / 0.9f;
            loadSlider.value = progress;
            yield return null;
        }
    }
}

ошибка помогите пж


Ответы (1 шт):

Автор решения: Алексей Шиманский

Надо писать либо

StartCoroutine(LoadNextScene());

Либо

StartCoroutine("LoadNextScene");

Смотри доки https://docs.unity3d.com/ScriptReference/MonoBehaviour.StartCoroutine.html

→ Ссылка