RKVoiceCommand更新

This commit is contained in:
Han
2025-04-18 11:18:24 +08:00
parent 1dab49717b
commit 68e1273792
3 changed files with 2 additions and 14 deletions

View File

@@ -59,6 +59,6 @@ public class VoiceCommandSystem : AbstractSystem,IVoiceCommandSystem
protected override void OnInit()
{
throw new System.NotImplementedException();
}
}

View File

@@ -89,16 +89,4 @@ public class VoiceCommandController : MonoBehaviour
}
}
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
if (VoiceCommands.TryGetValue("变成绿色", out Action action))
{
action?.Invoke();
}
}
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "com.staryevo.rkvoicecommand",
"version": "1.0.1",
"version": "1.0.2",
"displayName": "07.RKVoiceCommand",
"description": "Rokid语音命令工具",
"unity": "2021.3",