Update README.md
This commit is contained in:
@@ -1,22 +1,6 @@
|
||||
### 键盘映射表类
|
||||
|
||||
```csharp
|
||||
public class KeyMapping
|
||||
{
|
||||
public string actionName;
|
||||
public KeyCode keyCode;
|
||||
|
||||
public KeyMapping(string actionName, KeyCode keyCode)
|
||||
{
|
||||
this.actionName = actionName;
|
||||
this.keyCode = keyCode;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<code>KeySettingManager</code>为单例类
|
||||
|
||||
在<code>LoadKeySettings()</code>中填写自己需要的键位对即可。
|
||||
在其<code>LoadKeySettings()</code>方法中填写自己需要的键位对即可。
|
||||
|
||||
调用<code>GetKey(string actionName)</code>获取行为对应的KeyCode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user