Here is the err that is coming up.
Assets/Character Classes/BaseCharacter.cs(84,30): error CS0111: A member `BaseCharacter.GetVital(int)’ is already defined. Rename this member or use different parameter types
and my coding is
public Vital GetVital(int index) {
return _vital[index];
}
I have know i idea whats wrong with it. I am not very good with coding as you can tell
Thanks in advance!
Probably need to see more code as there is more going on with this than just what you are showing. It looks like you’re declaring an instance of the class Vital but you’re also re-declaring it which you shouldn’t be doing.
It should be
public Vital GetVital();
I think ?
That error message means that the GetVital function (with an integer as a parameter) is already defined once for that class. You’ve probably got the code twice.