Okay, so i’m getting the error the name “whichnote” does not exist in the current context on all of the if (whichnote [notemark] == 1-5) lines and I have no idea how to fix it. VERY beginner here by the way.
float number = Random.Range(1, 5);
if (whichnote [noteMark] == 1)
{
xPos = -0.423f;
}
if (whichnote [noteMark] == 2)
{
xPos = -0.225f;
}
if (whichnote [noteMark] == 3)
{
xPos = -0.009f;
}
if (whichnote [noteMark] == 4)
{
xPos = 0.2054f;
}
if (whichnote [noteMark] == 5)
{
xPos = 0.4119f;
}
noteMark += 1;
timerReset = "y";
Instantiate (noteObj, new Vector3 (xPos, 1.817911f, -6.038626f), noteObj.rotation);
}