Beispiel #1
0
    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();
        }
    }
Beispiel #2
0
 public void showImage(Image image)
 {
     HUDCamara.SetActive(true);
     // HUDGaleria.SetActive(false);
     HUDCamara.GetComponent <RawImage>().texture = image.mainTexture;
     DisableBody();
     // DeleteHud();
 }