When I use the script twice....

Hi I am making a clicker game.
There’s a script called Energy.
And Energy is made by Coal,Oil and something else (It’s a button)
When I Add Energy.cs to both Coal and Oil, it only works on Coal and It doesn’t work on Oil…
What should I do?

Try giving us the script, and also try putting Energy.cs on the Oil first.