public void showPirateMark() { purgeAll(); pirate = new PirateMark(); stage.AddChild( pirate ); if ( stats != null ) stage.AddChild( stats ); }
private void purgeAll() { if ( menu != null ) { stage.RemoveChild( menu ); menu = null; } if ( bunny != null ) { stage.RemoveChild( bunny ); bunny = null; } if ( bench != null ) { stage.RemoveChild( bench ); bench = null; } if ( pirate != null ) { stage.RemoveChild( pirate ); pirate = null; } }