private void ReloadScene(AsyncOperationHandle <LoadEventSO> obj)
    {
        LoadEventSO loadEvent = (LoadEventSO)_loadSceneEvent.Asset;

        loadEvent.RaiseEvent(new GameSceneSO[] { _thisSceneSO });
        SceneManager.UnloadSceneAsync(_thisSceneSO.sceneReference.editorAsset.name);
    }
예제 #2
0
    private void LoadGameScene(AsyncOperationHandle <LoadEventSO> obj)
    {
        LoadEventSO loadEventSO = (LoadEventSO)_levelLoadEvent.Asset;

        loadEventSO.RaiseEvent(_levelToLoad, true);

        SceneManager.UnloadSceneAsync(0);
    }