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; }
public GameController() { _state = _stateFactory.State.As<GameState>(); }
public void Reset() { var r = new nResolver(); _instance = r.Resolve<GameState>(); }