Simple progress bar/timer

This is basically what Im trying to do:

Click an object

Start a progress bar

When it stops, instantiate another object and set progress bar to 0

Click the object again, repeat

Question 1: Can I use a timer to fill the progress bar using GUI?

Question 2: If I put this script on my object, how do I check if the object has been clicked using another script?

I try to give your both questions answer.

  1. You can create simple progress bar using GUITexture that totally depends on you which object you want to use.
  2. In your other script you have to manage variable that define whether button is clicked or not. Using GetComponent you can access particular script and in that particular variable.