public void TogglePlay()
    {
        if (Time.time - lastTime >= delayTime)
        {
            lastTime = Time.time;

            if (videoPlayer.isPlaying)
            {
                videoPlayer.Pause();
                ButtonTouch.ChangeColor(Color.yellow);
            }
            else
            {
                videoPlayer.Play();
                ButtonTouch.ChangeColor(Color.green);
            }
        }
    }
Exemple #2
0
        public override string ToString()
        {
            string result = "";

            result += Timestamp.ToString();

            result += ";" + ButtonTouch.ToString();

            result += ";" + MultitouchID.ToString();

            result += ";" + X.ToString();
            result += ";" + Y.ToString();

            result += ";" + TouchMajor.ToString();
            result += ";" + WidthMajor.ToString();

            result += ";" + TouchMinor.ToString();
            result += ";" + Pressure.ToString();

            return(result);
        }