public bool Presionado(int id) { Partida p = GameObject.Find("Main Camera").GetComponent <Partida> (); if (p.ComponentePulsado(componente, gameObject.tag, id)) { gameObject.SetActive(false); return(true); } return(false); }