コード例 #1
0
 public FadeTransition(Screen state, WushuFighter game, float time)
     : base(state, game)
 {
     _totalTime = time;
     _timer = 0.0f;
     _increasing = true;
     _fade = new Texture2D(_game.GraphicsDevice, 1, 1);
     _fade.SetData<Color>(new Color[] { new Color(0, 0, 0) });
 }
コード例 #2
0
 public Transition(Screen stateTo, WushuFighter game)
 {
     _stateTo = stateTo;
     _isActive = false;
     _game = game;
 }