Untitled
unknown
csharp
2 years ago
237 B
14
Indexable
public void ChangeState(string stateName)
{
if (currentState != null)
{
currentState.Exit();
}
currentState = stateDictionary[stateName];
currentState.Enter();
}Editor is loading...