public void BodyButtons(string _name) { if (ModelIsFolders == true) { Debug.Log("Uso carpeta"); //Muestra las carpetas BotonController(_name); isCameraActive = false; } else { bodypart = _name; if (!Directory.Exists(Application.persistentDataPath + "/images/" + Name + "/" + bodypart)) { Directory.CreateDirectory(Application.persistentDataPath + "/images/" + Name + "/" + bodypart); } Debug.Log("Uso camara"); HUDCamara.SetActive(true); //aqui es donde definimos la parte del cuerpo con _name HUDCamara.GetComponent <Camerascript>().enableCamera(); isCameraActive = true; DisableBody(); } }
public void showImage(Image image) { HUDCamara.SetActive(true); // HUDGaleria.SetActive(false); HUDCamara.GetComponent <RawImage>().texture = image.mainTexture; DisableBody(); // DeleteHud(); }
//Activar Camara public void EnableCamera() { if (!HUDCamara.activeSelf) { ModelIsFolders = false; // HUDCamara.SetActive(true); HUDGaleria.SetActive(false); HUDPerfil.SetActive(false); EnableBody(); } else { HUDCamara.SetActive(false); DisableBody(); isCameraActive = false; } }
//Cargar Perfil public void ChargeProfile() { if (!HUDPerfil.activeSelf) { TextName.text = Name; TextGender.text = Gender; TextAge.text = Age; HUDPerfil.SetActive(true); HUDCamara.SetActive(false); HUDGaleria.SetActive(false); isCameraActive = false; DisableBody(); } else { HUDPerfil.SetActive(false); } }