I want to show more than one text with the C# and XNA. The situation is like this. If A
then display AAAAA
; If B
after 'A' then display BBBB
and AAAA
at the same time.
Here is the code I wrote:
if (Score == A)
{
spriteBatch.DrawString(
Font,
"AAAAAAAAAAAAAAAAAA",
scorePos,
Color.White);
}
if (Score == B)
{
spriteBatch.DrawString(
Font,
"BBBBBBBBBBB",
scorePos2,
Color.White);
}
However, if I display BBB
, AAA
disappears; what I should I use instead of my If
statement?