async void InitField(int num, CancellationToken cancellationToken) { _dangeonFieldModel.IsFieldSetting = true; // 画面に設置済みのタイルを全て消す _dangeonFieldView.RemoveAllTiles(); // floornum appear // _changeFloorCanvasView.SetActiveAll (true); // _changeFloorCanvasView.SetFloorNumText ($"FloorNum:{num}"); using (var makeFieldSevice = new FieldService( _dangeonFieldView.FieldWidth, _dangeonFieldView.FieldHeith, (int)_playerModel.InitPosVec3.x, (int)_playerModel.InitPosVec3.z)) { _dangeonFieldModel.Field = await makeFieldSevice.MakeFieldAsync(num, cancellationToken); _dangeonFieldModel.Map = new MapClass[_dangeonFieldView.FieldWidth, _dangeonFieldView.FieldHeith]; _dangeonFieldModel.Item = await makeFieldSevice.SetItemsAsync(num + 10, cancellationToken); } // 画面に設置する SetField(); SetItems(); // テスト用 ミニマップを全部表示 //StartCheckWalkedTilesTest (49, 49); await UniTask.Delay(1000); // todo // floornum disappear //_changeFloorCanvasView.SetActiveAll (false); _dangeonFieldModel.IsFieldSetting = false; }