i get a error cs1519: unexpected symbol “private” in class,struct or interface member declaration on lines 18 and 20.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BasePlayer {
private string playerName;
private int playerLevel;
private BaseCharacterClass playerClass;
private int stamina; //health modifier
private int endurance; //energy modifier
private int intellect; //magical damage modifier
private int strength; //physical damage modifier
private int agility; //haste and crit modifier
private int resistance //all damage reduction
private int gold //in game currency
private int currentXP;
private int requiredXP;
//public string PlayerName{
// get { return playerName; }
//set { playerName = value; }
//}
public string PlayerName{get;set;}
public int CurrentXP{ get; set;}
public int RequiredXP{ get; set; }
public int PlayerLevel{
get { return playerLevel; }
set { playerLevel = value; }
}
public BaseCharacterClass PlayerClass{
get { return playerClass; }
set { playerClass = value; }
}
public int Stamina{
get { return stamina; }
set { stamina = value; }
}
public int Endurance{
get { return endurance; }
set { endurance = value; }
}
public int Intellect{
get { return intellect; }
set { intellect = value; }
}
public int Strength {
get { return strength; }
set { strength = value; }
}
public int Agility {
get{ return agility; }
set{ agility = value; }
}
public int Resistance {
get{ return resistance; }
set{ resistance = value; }
}
public int Gold {
get{ return gold; }
set{ gold = value; }
}
}