public GameStateViewModel(GameState state, nCamera camera)
 {
     Items = new List<nIDrawable> {
     state.Field.Display,
     state.PlayerPaddle.Display,
     state.AiPaddle.Display,
     state.Ball.Display,
     state.Sparkle.Display,
     state.RainbowTrail.Display,
     state.Flare.Display,
     state.Collectables.Display
       };
       Camera = camera;
 }
Example #2
0
 public GameController() {
   _state = _stateFactory.State.As<GameState>();
 }
Example #3
0
 public void Reset()
 {
     var r = new nResolver();
       _instance = r.Resolve<GameState>();
 }