Remove the =
in RemainHP
. Right now it is equivalent to
Health = Health - Injured;
return Health;
You want
return Health - Injured
2
solved What’s wrong with my C# codes?
Remove the =
in RemainHP
. Right now it is equivalent to
Health = Health - Injured;
return Health;
You want
return Health - Injured
2
solved What’s wrong with my C# codes?