Example #1
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;
     }
 }
Example #2
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);
        }
    }