RKVoiceCommand更新
This commit is contained in:
@@ -59,6 +59,6 @@ public class VoiceCommandSystem : AbstractSystem,IVoiceCommandSystem
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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