private void PhaseFourLoad() { // we loaded the data and no we should load the MainMenu scene ? AsyncSceneLoader loadMainMenu = new AsyncSceneLoader("GameScene"); loadMainMenu.OnCompleteLoading += asset => { // we now have loaded everything we should have we can now move to the next // phase of the game! FinishedLoading(0); }; AssetManager.Instance.RequestAssetLoad(loadMainMenu); }
void Start() { loader = GetComponent <AsyncSceneLoader>(); Init(); }