public override void load(ContentManager content) { try { vida.loadContent(content, "charIcon"); }catch (NullReferenceException exception) { vida.loadContent(content, "GameOver"); } base.load(content); }
public override void load(ContentManager content, string textu, bool muchos) { try { vida.loadContent(content, "CarIcon"); }catch (NullReferenceException exception) { vida.loadContent(content, "GameOver"); } if (prote) { try { proteccion.load(content, "escudo", true); } catch { proteccion.load(content, "GameOver", true); } } base.load(content, textu, muchos); }