private void ManageState()
{
var nextStates = state.GetNextStates();
if (Input.GetKeyDown(KeyCode.Alpha1))
{
state = nextStates[0];
}
else if (Input.GetKeyDown(KeyCode.Alpha2))
{
state = nextStates[1];
}
else if (Input.GetKeyDown(KeyCode.Alpha3))
{
state = nextStates[2];
}
}
Hello AJ,
Could you be a little more descriptive, perhaps share what the error is, which line number, the full script.
See also;
- Forum User Guides : How to apply code formatting within your post
I actually scraped the game that i had the error Rob. I’m going make a new Chooses RPG game. If i get the same error again i’ll post my full script with a list of the errors and a description of the error. Thank you for the reply anyways. -
Hi AJ,
No problem, create a new topic with the details if necessary