I’m a noob at this.
There is a problem that I could not solve alone, and I want you to help me, it turns out that every time I enter the unity playmode, the parameters of a script disappear. I don’t know if it’s because of my script or it’s something else. Anyway I leave you screenshots of my project in unity and the problematic script. Thank you very much in advance.
When I press the "Atacar" button, I get the error below.
Source: Visual Studio Questions