Dictionary<int, string> questionDic = new Dictionary<int, string> {
{5,"a"},
{10,"b"},
{10,"c"},
{9,"d"},
{8,"e"},
{7,"f"},
};
int i=0;
talk.text = questionDic.ElementAt(i).Value;
index = questionDic.ElementAt(i).Key;
i++;
unity 根据索引 获取字典的键值,
最新推荐文章于 2024-10-15 18:06:46 发布