当前位置:网站首页>Unity monitor button
Unity monitor button
2022-07-16 07:09:00 【MaNongSa】
Code :
public KeyCode getKeyDownCode()
{
if (Input.anyKeyDown)
{
foreach (KeyCode keyCode in Enum.GetValues(typeof(KeyCode)))
{
if (Input.GetKeyDown(keyCode))
{
Debug.Log(keyCode.ToString());
return keyCode;
}
}
}
return KeyCode.None;
}
边栏推荐
猜你喜欢
随机推荐
What can I do after learning C language? Let's make a push box first ~ (there are pictures)
DIY一个缓存
DDD——在我梦里,我还能让你把我给欺负了?
Vscode automatically adds comments
Database dark horse notes DML
leetcode-3 无重复字符的最长字串(滑动窗口,unordered_set, st.find(string[i]))
Talk about the interface
01. Write three listeners in a class
秒杀活动开发
【C语言】 大学生考勤管理系统
SSM library management system
Three handshakes of TCP
Scope when multiple else if are nested
Pat's notes on question brushing [collation of English expressions of unknown key points in the title]
week3
Binary search method
商品模块开发
JVM原理与实战
2021-07-31
LeetCode精讲——873. 最长的斐波那契子序列的长度(难度:中等)







![[introduction to go language] 05 go language branch statement](/img/cb/9830418c0e14b40fb15cfb68966426.png)

