예제 #1
0
	// Plays the video texture
	
	public void Play()
	{
		if (enableAudio)
			{
				myAudio.frameIndex = index;
				myAudio.Sync();
				myAudio.UnMute();
				myAudio.Play();
			}
			
			playState = UVT_PlayState.Playing;
			UpdatePlayFactor();
	}	
예제 #2
0
    // Plays the video texture

    public void Play()
    {
        enableGUI = true;

        if (enableAudio && playDirection == UVT_PlayDirection.forward)
        {
            myAudio.frameIndex = index;
            myAudio.Sync();
            myAudio.UnMute();
            myAudio.Play();
        }

        playState = UVT_PlayState.Playing;
        UpdatePlayFactor();
    }