Пример #1
0
 private void LevelCheckpointChanged(object sender, CheckpointChangedEventArgs e)
 {
     this.swapper.SwapSprite(!this.gameController.IsCheckpointVisited(this));
 }
Пример #2
0
 /// <summary>
 /// Update the checkpoint texture and set it to be the current tile.
 /// </summary>
 public void HandleCheckpointChange(object sender, CheckpointChangedEventArgs args)
 {
     _checkpointTexture = _contentManager.Load <Texture2D>(@"Exercises\" + args.FileId);
     IsCurrentTile      = true;
 }