public void EnableSky( bool onoff ) { if ( null != skyBoxNode ) { isSkyBoxEnabled = onoff; } else if ( null != skyDomeNode ) { isSkyDomeEnabled = onoff; } else if ( null != skyPlaneNode ) { isSkyPlaneEnabled = onoff; } } }