Пример #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();
        }
    }
Пример #2
0
 public void showImage(Image image)
 {
     HUDCamara.SetActive(true);
     // HUDGaleria.SetActive(false);
     HUDCamara.GetComponent <RawImage>().texture = image.mainTexture;
     DisableBody();
     // DeleteHud();
 }
Пример #3
0
 //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;
     }
 }
Пример #4
0
    //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);
        }
    }