RKVoiceCommand更新
This commit is contained in:
@@ -89,16 +89,4 @@ public class VoiceCommandController : MonoBehaviour
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
if (VoiceCommands.TryGetValue("变成绿色", out Action action))
|
||||
{
|
||||
action?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user