ERROR: Unexpected symbol `{'

i have this error:

in this script:

the error is in the line 17, when it says: set{ _curValue = value; }

please help me, i have tried to find what is the error, but i couldn’t find it

public class Vital : ModifiedStat {
	private int _curValue;

	public Vital() {
		_curValue = 0;
		ExpToLevel = 50;
		levelModifier = 1.1f;
	}

	public int CurValue {
		get{
			if(_curValue > AdjustedBaseValue)
				_curValue = AdjustedBaseValue;

			return _curValue;
		}
		set{ _curValue = value; }
	}
}

public enum VitalName {
	Health,
	Energy,
	Mana
}

Fixed.

return _curValue;
}
set{ _curValue = value; }

i thought the same, but when i do that, unity gives me other error that says:

this error might be because the meaning of the previous script changes

BaseStat isn’t anywhere in your Vital.cs script. Also, the error refers to another script.

yes, but the error of the BaseStat appears only when i add the brace in the Vital.cs script, so i think both scripts are related.
even i added and removed a couple of times the brace that apparently causes the error, and so i made sure the brace in Vital.cs causes the other error. im desperate with this error

A’right, post your BaseStat.cs here.

my BaseStat.cs is:

the error of the BaseStat.cs appears in other scripts: Attribute and ModifiedStat.cs because i put

at the beginnig

Your BaseStat function isn’t declared anywhere.

It may be a shot in the dark here, but you’re following the BugzerArcade tutorial, aren’t you? If so, those two BaseStat.cs are completely different.

yes i do. im following that tutorial.
of which BaseStat.cs are you talking about? of the BugzerArcade’s and mine?

Your BaseStat.cs is not what’s in the tutorial.

Lookie here:

i haven’t finished seeing all the tutorials yet

it seems i found my error!!!
i dont know why, but i put the script of targetting into BaseStat.cs