June 2017
Beginner to intermediate
336 pages
8h 44m
English
Once we have our keyword defined, we need to implement the action for respective keywords. For show hide speaker, our Action will be the same as we did by Air Tapping in Speaker. However, in this case, we need two different action methods ShowSpeaker() and HideSpeaker() that will get called respectively when we invoke the Show Speaker and Hide Speaker Voice Commands respectively.
public class VoiceCommandHandler : MonoBehaviour{ private bool isShowing = false; public void ShowSpeaker() { if (!isShowing) { var lftSpeakerDetails = GameObject.FindWithTag("speakerDetails"); MeshRenderer ...Read now
Unlock full access