public GameObject InitDuctoPass(AmbienteControl amb) { dPass = new Ductopass(); DatosScena.Ductopass.Add(dPass); this.amb = amb; this.continuacion = GameObject.Instantiate(this.gameObject); this.continuacion.GetComponent <DuctoControl>().ghost = true; return(this.continuacion); }
public void SetAmbiente(AmbienteControl referencia) { this.amb = referencia; }