-
-
Save todorok1/78682770ced4dd1987df347eaf7bbb5d to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第112回 フラグを管理するクラス
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
| void Start() | |
| { | |
| LoadFlagNames(); | |
| } | |
| /// <summary> | |
| /// フラグ名のデータをロードします。 | |
| /// </summary> | |
| public async void LoadFlagNames() | |
| { | |
| AsyncOperationHandle<IList<FlagNameData>> handle = Addressables.LoadAssetsAsync<FlagNameData>(AddressablesLabels.Flag, null); | |
| await handle.Task; | |
| _flagNameData = handle.Result[0]; | |
| handle.Release(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment