// Invoke the Changed event; called whenever checkpoint changes protected virtual void OnChanged(CheckpointChangedEventArgs e) { if (CheckpointChanged != null) { CheckpointChanged(this, e); } }
/// <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; }
// Invoke the Changed event; called whenever checkpoint changes protected virtual void OnChanged(CheckpointChangedEventArgs e) { if (CheckpointChanged != null) CheckpointChanged(this, e); }