I have a script CoinFill which makes a radial progress bar.
CoinFill
When the FillAmount = 1 I want to reset that specific Image to zero. I want to be able to use t
Joe's answer is good, but wanted to add another option to answer the titular question: Since your class derives from Monobehavior, you can add your script to ANY game object at Run-time with the following code-line.
someobject.gameObject.AddComponent();