// Update is called once per frame
    void Update()
    {
        if (readyEvent.HasStarted())
        {
            timer -= Time.deltaTime;
            target = GameObject.Find("target").GetComponent <SpriteRenderer> ().sprite;

            if (timer <= 0 && timerController.isRunning())
            {
                clicked = false;

                UpdateTimer();
                changeSprite();
            }
        }
    }
    // Update is called once per frame
    void FixedUpdate()
    {
        if (readyEvent.HasStarted())
        {
            if ((int)count == 0)
            {
                running = false;
                timeupEvent.ShowTimeUp();
            }

            if ((int)count > 0)
            {
                count          -= Time.deltaTime;
                timerLabel.text = ((int)count).ToString();
            }
        }
    }