Hello everyone, im following along with a tutorial on how to make a visual novel by “TheHappieCat” i dont know if im allowed to put links so i wont but im having an issue where it says “Error CS0117 'DialogueParser.DialogueLine does not contain a definition for ‘name’” if i hover over the .name in this code:
public string GetName(int lineNumber)
{
if (lineNumber < lines.Count)
return lines [lineNumber].name;
return "";
}
So i went to look at the DialogueLine code and i see that name content and pose are all there:
List<DialogueLine> lines;
struct DialogueLine
{
string name;
string content;
int pose;
public DialogueLine(string n, string c, int p)
{
name = n;
content = c;
pose = p;
}
}
and im just at a complete loss at how to get this .name working, if you can help id really appreciate it.