Skip to content

Commit

Permalink
implemented async methid but it's not working correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
YKariyado committed Jun 13, 2021
1 parent 92e3a5d commit a11cc80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/GameManageSparse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void Update()

Dictionary<Tuple<int, int, int>, int> cell_list_for_judge = new Dictionary<Tuple<int, int, int>, int>();

////非同期のオペレーション。ここをぶっ飛ばして189までいったん飛ぶ。
////非同期のオペレーション。judgeとcurrentがスピード差でやられちゃう。次のtask実行まで待てばいい
Task.Run(() =>
{

Expand Down Expand Up @@ -184,7 +184,6 @@ void Update()
}
}

//ここまで飛んじゃうから一回消される。ここから206行までやった後にTaskが完了しちゃうからcurrent_cell_listが0の状態でスタート。問題。
cell_location_matrix.dataClear();
current_cell_list.Clear();

Expand Down

0 comments on commit a11cc80

Please sign in to comment.