예제 #1
0
파일: Gun.cs 프로젝트: castorga/ProyectoDDI
    private void Awake()
    {
        bullets = maxBullets;
        currentBullets.SetText(bullets.ToString());
        VoiceCommandProcessor commandProcessor = GameObject.FindObjectOfType <VoiceCommandProcessor>();

        commandProcessor.onVoiceCommandRecognized += OnVoiceCommandRecognized;
    }
예제 #2
0
    // 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];
    }
예제 #3
0
 void Start()
 {
     commandProcessor = VoiceCommandProcessor.Instance;
     commandProcessor.onVoiceCommand += VoiceInteract;
 }
예제 #4
0
    /// <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;
    }
예제 #5
0
 protected virtual void Start()
 {
     commandProcessor = VoiceCommandProcessor.Instance;
     commandProcessor.onVoiceCommand += VoiceInteract;
     Debug.Log("Test");
 }