State Manager now calls activate on the initial state.
This commit is contained in:
parent
1f8bc5fb61
commit
f339a33d3e
@ -35,8 +35,9 @@ namespace SlatedGameToolkit.Framework.StateSystem
|
|||||||
if (initialState == null) throw new ArgumentNullException("initialState");
|
if (initialState == null) throw new ArgumentNullException("initialState");
|
||||||
Logger.Log("Initialized state manager with state: " + initialState.getName());
|
Logger.Log("Initialized state manager with state: " + initialState.getName());
|
||||||
thread = Thread.CurrentThread;
|
thread = Thread.CurrentThread;
|
||||||
currentState = initialState;
|
|
||||||
AddState(initialState);
|
AddState(initialState);
|
||||||
|
currentState = initialState;
|
||||||
|
currentState.Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void Update(double timeStep) {
|
internal void Update(double timeStep) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user