RKVoiceCommand更新
This commit is contained in:
@@ -59,6 +59,6 @@ public class VoiceCommandSystem : AbstractSystem,IVoiceCommandSystem
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -89,16 +89,4 @@ public class VoiceCommandController : MonoBehaviour
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
if (VoiceCommands.TryGetValue("变成绿色", out Action action))
|
||||
{
|
||||
action?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.staryevo.rkvoicecommand",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"displayName": "07.RKVoiceCommand",
|
||||
"description": "Rokid语音命令工具",
|
||||
"unity": "2021.3",
|
||||
|
||||
Reference in New Issue
Block a user