the bold part is what I need help with. I want to increase the level by 1 when they reach the exp requirement the error code is
Assets\scripts\exp.cs(21,13): error CS0149: Method name expected
public class exp : MonoBehaviour
{
public int NextLevel = 100;
public int Curentlevel = 0;
public int currentExp { get; private set; }
// Start is called before the first frame update
void Start()
{
currentExp = 0;
}
public void level(int LevelUp)
{
if (currentExp >= NextLevel)
{
LevelUp();
}
}
public void ExpGained(int exp)
{
currentExp += exp;
}
public void LevelUp()
{
Curentlevel += 1;
}
}