public void LoadPlayer() { PlayerData data = SaveSytem.LoadPlayer(); level = data.level; // teamName = data.teamName; // password = data.password; }
public int getCurrentlevel() { PlayerData data = SaveSytem.LoadPlayer(); return(data.level); }