// Start is called before the first frame update void Awake() { if (objeto == null) { objeto = this; DontDestroyOnLoad(gameObject); } else { if (objeto != null) { Destroy(this); } } }
private void Awake() { objetoIndes = GameObject.Find("objetoindestruible").GetComponent <ObjetoEsenas>(); }