辞書
最終更新日時 :
1人が閲覧中
辞書作成
static Dictionary<string, KeyCode> 対応表 = new Dictionary<string, KeyCode>()
{
{"A", KeyCode.A}, {"B", KeyCode.B}, {"C", KeyCode.C}
}
辞書使用
foreach (var 項目 in 対応表)
{
string A = 項目.Key;
KeyCode コードA = 項目.Value;
Debug.Log(A);
Debug.Log(コードA)
}
コメント (辞書)
この記事を作った人

