Exemplo n.º 1
0
    void Start()
    {
        submitButton.onClick.AddListener(delegate {
            DateFieldsConcat();
            HourConcat();
            reportform.Validate();
            if (isValidDate(dateString) && isValidHour(hourString))
            {
                reportform.ReportCleaner();
                HandleSubmitClicked();
                reportWindow.SetActive(false);
                ClearReportInput();
                openMap.AddTemporalMarker();
            }
            else
            {
                //openMap.EraseTemporalMarker();
            }
        });

        cancelButton.onClick.AddListener(delegate {
            openMap.EraseTemporalMarker();
            ClearReportInput();
            reportform.ReportCleaner();
        });
    }