unity中的button中的onclick控制面板中四个参数的意思分别是什么
第一次用控制面板来写Onclick,看的晕乎乎的


Main Menu(Script)的全部代码
using UnityEngine; using UnityEngine.SceneManagement; using System.Collections;public class MainMenu : MonoBehaviour {public void OnLevelLoadButton(Level level){Debug.Log("方法被调用了!level = " + level);LevelToLoad.level = level;StartCoroutine(LoadScene());}private IEnumerator LoadScene(){AsyncOperation asyncLoadLevel = SceneManager.LoadSceneAsync("TripleMatchCanoe", LoadSceneMode.Single);while (!asyncLoadLevel.isDone)yield return null;yield return new WaitForEndOfFrame();}}

纯属个人理解,如果有错,希望指正。