コード例 #1
0
        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);
        }
コード例 #2
0
 void Start()
 {
     loader = GetComponent <AsyncSceneLoader>();
     Init();
 }