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

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