void Inject(MyPhysicsService myPhysicsService) { myPhysicsService.Register(this); }
void Inject(MyPhysicsService myPhysicsService, StateMachine <T> .Factory stateMachineFactory) { _myPhysicsService = myPhysicsService; Context = CreateContext(); _states = stateMachineFactory.Create(Context); }