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