public void ChangeWinner(bool b) { if (b) { this.Current = this.ImageBWon; } else { this.Current = this.ImageAWon; } }
public override void OnInit() { float aspect = (ImageSize.X / ImageSize.Y); float w = 0.8f; float h = aspect / 12f; var size = new Vector2(w, h); var position = new Vector2((1f - w) / 2f, (1f * aspect - h) / 2f); this.ImageAWon = new Sprite(this.GameInfo.Content.Load<Texture>("PlayerAWon.png"), position, size); this.ImageBWon = new Sprite(this.GameInfo.Content.Load<Texture>("PlayerBWon.png"), position, size); this.Current = this.ImageAWon; }