private void Awake() { bullets = maxBullets; currentBullets.SetText(bullets.ToString()); VoiceCommandProcessor commandProcessor = GameObject.FindObjectOfType <VoiceCommandProcessor>(); commandProcessor.onVoiceCommandRecognized += OnVoiceCommandRecognized; }
// Start is called before the first frame update void Start() { VoiceCommandProcessor commandProcessor = GameObject.FindObjectOfType <VoiceCommandProcessor>(); commandProcessor.onVoiceCommandRecognized += OnVoiceCommandRecognized; x = 3; //default color rend = GetComponent <Renderer>(); rend.enabled = true; rend.sharedMaterial = material[x]; }
void Start() { commandProcessor = VoiceCommandProcessor.Instance; commandProcessor.onVoiceCommand += VoiceInteract; }
/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> void Start() { VoiceCommandProcessor commandProcessor = GameObject.FindObjectOfType <VoiceCommandProcessor>(); commandProcessor.onVoiceCommandRecognized += OnVoiceCommandRecognized; }
protected virtual void Start() { commandProcessor = VoiceCommandProcessor.Instance; commandProcessor.onVoiceCommand += VoiceInteract; Debug.Log("Test"); }