-
-
Save todorok1/268465af526fb097491aea0d3fd8ac12 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第120回 マップ機能を管理するクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// マップ用Prefabをロードします。 | |
| /// </summary> | |
| public async void LoadMapPrefab(IMapLoadCallback callback) | |
| { | |
| AsyncOperationHandle<IList<GameObject>> handle = Addressables.LoadAssetsAsync<GameObject>(AddressablesLabels.Map, null); | |
| await handle.Task; | |
| _mapPrefabs = new List<GameObject>(handle.Result); | |
| handle.Release(); | |
| if (callback != null) | |
| { | |
| callback.OnFinishedLoad(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment