I'm not understanding what's wrong with this implementation. Perhaps someone could shed some light on the issue. The compiler is stating that there is no overloaded method for StartGame that matches the delegate. Am I missing something silly here?
SceneManager.sceneLoaded += this.StartGame;
director = GetComponent<Director>();
public void LoadGameLevel()
void StartGame(UnityAction<Scene, LoadSceneMode> sceneInfo)
foreach (GameObject player in players)
This is how the event is defined:
public static event UnityAction<Scene, LoadSceneMode> sceneLoaded;
StartGame(UnityAction <Scene, LoadSceneMode> sceneInfo)
void StartGame(Scene scene, LoadSceneMode sceneMode).
That should solve your problem.