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",