by clicking with the mouse generates points for each click generates 10 hit points

my heart that the object, it does not work on the script, I want you to click on the heart generate points, as do it in the script.

by clicking with the mouse generates points for each click generates 10 hit points

Try using Input.GetMouseDown() method.

Can drill better not understand, I do not understand the script. Well want something, my game will be like. I want to click an object and the heart, by clicking it with the mouse, you will generate coins points. how I do this by scheduling the script. And where is GetMouseDown ().

post your script (use code tags) so people can see what you are doing now. It will be easier to make suggestions.

The previous suggestion should also be Input.GetMouseButtonDown

My bad, sorry for any confusion that may have caused.

1 Like

I understood nothing

Copy your script & paste it in here & use code tags so it displays correctly.

I do not know How to get where I am newcomer. and does not understand how to script. But has another already helping me he sent me the script so that I can put in my game. thank you for attention.