// Update is called once per frame
void Update()
{
if (playing)
{
// controller.gameObject.SetActive(true);
if (!previousPlaying)
{
// controller.gameObject.SetActive(true);
Debug.Log("Loaded FrameCount: " + player.GetFramesCount());
player.Play();
player.loop = true;
}
// teacherImage.gameObject.SetActive (false);
// teacherImage.sprite = gesture.teacherFrames [Mathf.FloorToInt (Time.time) % 2];
}
else
{
// teacherImage.gameObject.SetActive (false);
// controller.gameObject.SetActive(false);
}
previousPlaying = playing;
}