From 68e1273792d65aa3248ad1bf161e4dd2c81b3903 Mon Sep 17 00:00:00 2001 From: Han <1985708279@qq.com> Date: Fri, 18 Apr 2025 11:18:24 +0800 Subject: [PATCH] =?UTF-8?q?RKVoiceCommand=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07.RKVoiceCommand/RunTime/IVoiceCommandSystem.cs | 2 +- .../RunTime/VoiceCommandController.cs | 12 ------------ Assets/07.RKVoiceCommand/package.json | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Assets/07.RKVoiceCommand/RunTime/IVoiceCommandSystem.cs b/Assets/07.RKVoiceCommand/RunTime/IVoiceCommandSystem.cs index 3814ac3..be1c816 100644 --- a/Assets/07.RKVoiceCommand/RunTime/IVoiceCommandSystem.cs +++ b/Assets/07.RKVoiceCommand/RunTime/IVoiceCommandSystem.cs @@ -59,6 +59,6 @@ public class VoiceCommandSystem : AbstractSystem,IVoiceCommandSystem protected override void OnInit() { - throw new System.NotImplementedException(); + } } \ No newline at end of file diff --git a/Assets/07.RKVoiceCommand/RunTime/VoiceCommandController.cs b/Assets/07.RKVoiceCommand/RunTime/VoiceCommandController.cs index 24c6508..728c2f6 100644 --- a/Assets/07.RKVoiceCommand/RunTime/VoiceCommandController.cs +++ b/Assets/07.RKVoiceCommand/RunTime/VoiceCommandController.cs @@ -89,16 +89,4 @@ public class VoiceCommandController : MonoBehaviour } } - - void Update() - { - if (Input.GetKeyDown(KeyCode.Space)) - { - if (VoiceCommands.TryGetValue("变成绿色", out Action action)) - { - action?.Invoke(); - } - } - } - } diff --git a/Assets/07.RKVoiceCommand/package.json b/Assets/07.RKVoiceCommand/package.json index 6cc445b..b470a0b 100644 --- a/Assets/07.RKVoiceCommand/package.json +++ b/Assets/07.RKVoiceCommand/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.rkvoicecommand", - "version": "1.0.1", + "version": "1.0.2", "displayName": "07.RKVoiceCommand", "description": "Rokid语音命令工具", "unity": "2021.3",