// Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0) || gesTureListener.IsSwipeRight()) { x++; if (x % 4 == 0) { anim.Play("nextMusic0", -1, 0f); audioSource.clip = audioClip1; audioSource.Play(); anim1.Play("dance1", -1, 0f); } else if (x % 4 == 1) { anim.Play("nextMusic1", -1, 0f); audioSource.clip = audioClip2; audioSource.Play(); anim1.Play("dance2", -1, 0f); } else if (x % 4 == 2) { anim.Play("nextMusic2", -1, 0f); audioSource.clip = audioClip3; audioSource.Play(); anim1.Play("dance3", -1, 0f); } else if (x % 4 == 3) { anim.Play("nextMusic3", -1, 0f); audioSource.clip = audioClip0; audioSource.Play(); anim1.Play("dance4", -1, 0f); } } else if (gesTureListener.IsPush()) { Application.LoadLevel("playSwift"); } }