Ejemplo n.º 1
0
    void PlayThisAudioStatement(AudioClip clip)
    {
        PlayAudio clipPlayer = new PlayAudio();

        clipPlayer = GameObject.FindWithTag("Player").GetComponent <PlayAudio>();
        clipPlayer.PlayThisAudioClip(clip);
    }
Ejemplo n.º 2
0
    //update function done



    void PlayThisAudioStatement(AudioClip clip)
    {
        Debug.Log("pauseTime");

        PlayAudio statement2player = new PlayAudio();

        statement2player = GameObject.FindWithTag("Player").GetComponent <PlayAudio>();
        statement2player.PlayThisAudioClip(clip);
    }