Fairly new Unity user here (Started from Javascript and made a steep fall into C# just a week ago)

I currently have two working scripts, one a tutor made for me (and for me to freely add on to and edit) and another one that a followed from a tutorial.
So the problem that I’m having is that, instead of another game object inflicting damage on my character’s health bar, my input keys are the one decreasing my health.

EDIT: Found my problem, nevermind…

Er, just to add in a bit more, because I’m new at this stuff… taking in new coding language is overwhelming in a tight schedule alongside my other classes and I’m not really a coding type of person, so what basic things should be best remembered instead of trying to add in certain variables that probably wouldn’t help with my script?

Also, how do I add my code in without putting them into an attachment?

The Scripting section of the forums has the following tutorial. I don’t know why they never put it in this section too.

http://forum.unity3d.com/threads/using-code-tags-properly.143875/

Thank you

Maybe back up your work regularly so you can go back to a known good state if something weird happens.

Also, I wouldn’t make too many changes at once. There is iterative development.