- Made Package loading conditional on resources being available.
- Made States registration use named parameters. - Changed IPluginManagementService interface to better suit expected return results.
This commit is contained in:
@@ -30,7 +30,7 @@ public class StateMachine<T> where T : Enum
|
||||
ThrowHelper.ThrowArgumentException($"State with id {stateId} already exists.");
|
||||
}
|
||||
|
||||
_states[stateId] = new State<T>(stateId, onEnter, onExit);
|
||||
_states[stateId] = new State<T>(stateId, onEnterState: onEnter, onExitState: onExit);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user