Ejemplo n.º 1
0
        private void Start()
        {
            TextButton.onClick.AddListener(delegate
            {
                SetText();
            });

            GalleryButton.onClick.AddListener(delegate
            {
                QuestPhoto.GetPictureMission(4096, MissionID);
            });

            CameraButton.onClick.AddListener(delegate
            {
                QuestPhoto.TakePictureMission(4096, MissionID, "Nenhum");
            });

            QuestName.text = MissionName;

            if (Convert.ToBoolean(MissionComplete))
            {
                QuestComplete.text = "Concluída";

                VerifyButton.gameObject.SetActive(true);
            }
            else
            {
                QuestComplete.text = "Não Concluída";

                switch (Convert.ToInt32(MissionType))
                {
                case 0:
                    GalleryButton.gameObject.SetActive(true);
                    CameraButton.gameObject.SetActive(true);
                    break;

                case 1:
                    TextInput.gameObject.SetActive(true);
                    TextButton.gameObject.SetActive(true);
                    break;

                case 2:
                    QuestValue.gameObject.SetActive(true);
                    break;

                case 3:
                    GalleryButton.gameObject.SetActive(true);
                    CameraButton.gameObject.SetActive(true);

                    TextInput.gameObject.SetActive(true);
                    TextButton.gameObject.SetActive(true);
                    break;

                default:
                    break;
                }
            }

            if (Convert.ToBoolean(MissionVerify))
            {
                QuestVerify.text = "Verificada";

                VerifyButton.gameObject.SetActive(false);
            }
            else
            {
                QuestVerify.text = "Aguardando";
            }

            if (Convert.ToInt32(MissionType) == 2)
            {
                QuestValue.text = MissionTotal + "m" + " de " + MissionValue + "m";
            }
            else
            {
                QuestValue.text = "";
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Tirar foto do Pointstop.
 /// </summary>
 public void Photo()
 {
     PointstopID = transform.name;
     QuestPhoto.TakePictureMission(4096, "Nenhum", PointstopID);
 }