Example #1
0
 public void showPirateMark()
 {
     purgeAll();
     pirate = new PirateMark();
     stage.AddChild( pirate );
     if ( stats != null ) stage.AddChild( stats );
 }
Example #2
0
    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;
        }
    }