public void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))
     {
         if (this.gameObject.tag == "True")
         {
             mscTriggers.PlaySingle(sfxclip[0]);
             ScoreManager.AddPoints(pointsToAdd);
             GameObject.Find("Counter Slider").GetComponent <Level4Scene2>().timeBar.value = 7f;
             GameObject.Find("Counter Slider").GetComponent <Level4Scene2>().counting     += 1;
             lvl4scene2.changeQuestions(lvl4scene2.counting);
             lvl4scene2.changeUpperFrameQuestions(lvl4scene2.counting);
             Debug.Log("IsSelected: " + this.gameObject.tag);
         }
         if (this.gameObject.tag == "False")
         {
             mscTriggers.PlaySingle(sfxclip[1]);
             ScoreManager.AddPoints(pointsToAdd);
             HeartAndStars.MinusHeartAndStars(toBeDeducted);
             GameObject.Find("Counter Slider").GetComponent <Level4Scene2>().timeBar.value = 7f;
             GameObject.Find("Counter Slider").GetComponent <Level4Scene2>().counting     += 1;
             lvl4scene2.changeQuestions(lvl4scene2.counting);
             lvl4scene2.changeUpperFrameQuestions(lvl4scene2.counting);
             Debug.Log("IsSelected: " + this.gameObject.tag);
         }
     }
 }
    public void OnMouseOver()
    {
        if (Input.GetMouseButtonDown(0))
        {
            //if (tapping)
            //{
            //    doubleTap = true;
            //    Debug.Log("DoubleTap");
            //    tapping = false;
            //}
            //else
            //{
            //    tapping = true;
            //    tapTime = duration;

            //}
            //if (tapping)
            //{
            //    tapTime = tapTime - Time.deltaTime;
            //    if (tapTime <= 0)
            //    {
            //        tapping = false;
            //        singleTap = true;
            //        Debug.Log("SingleTap");
            //    }
            //}
            //if (singleTap && !gameObject.name.Contains("ggg"))
            //{


            //   if (singleTap)
            //{
            if (gameObject.tag == "Right")
            {
                mscTrigger.PlaySingle(sfxClip[0]);
                ScoreManager.AddPoints(pointsToAdd);
                this.gameObject.GetComponent <Animator>().enabled      = false;
                this.gameObject.GetComponent <SpriteRenderer>().sprite = spr;
                Counter.AddCounter(counterToAdd);
                StartCoroutine(doTransitionOfSprite());
            }
            if (gameObject.tag == "Wrong")
            {
                mscTrigger.PlaySingle(sfxClip[1]);
                ScoreManager.AddPoints(pointsToAdd);
                this.gameObject.GetComponent <Animator>().enabled      = false;
                this.gameObject.GetComponent <SpriteRenderer>().sprite = spr;
                HeartAndStars.MinusHeartAndStars(toBeDeducted);
                StartCoroutine(doTransitionOfSprite());
            }
        }
        //}
        //if (doubleTap && gameObject.name.Contains("ggg"))
        //{
        //    Debug.Log("catch");

        //    if (gameObject.tag == "Right")
        //    {
        //        mscTrigger.PlaySingle(sfxClip[0]);
        //        ScoreManager.AddPoints(pointsToAdd);
        //        this.gameObject.GetComponent<Animator>().enabled = false;
        //        this.gameObject.GetComponent<SpriteRenderer>().sprite = spr;
        //        Counter.AddCounter(counterToAdd);
        //        StartCoroutine(doTransitionOfSprite());


        //    }
        //    else if (gameObject.tag == "Wrong")
        //    {
        //        mscTrigger.PlaySingle(sfxClip[1]);
        //        ScoreManager.AddPoints(pointsToAdd);
        //        this.gameObject.GetComponent<Animator>().enabled = false;
        //        this.gameObject.GetComponent<SpriteRenderer>().sprite = spr;
        //        HeartAndStars.MinusHeartAndStars(toBeDeducted);
        //        StartCoroutine(doTransitionOfSprite());
        //    }
        //}
        // }
    }