コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: GameController.cs プロジェクト: shadowmint/pongstar
 public GameController() {
   _state = _stateFactory.State.As<GameState>();
 }
コード例 #3
0
 public void Reset()
 {
     var r = new nResolver();
       _instance = r.Resolve<GameState>();
 }