void RemoveEvent(GameCalendarEventObject curentEvent)
        {
            _events.Events.Remove(curentEvent);

            EditorUtility.SetDirty(_events);
            AssetDatabase.SaveAssets();
        }
Exemplo n.º 2
0
        private void GetEventEnd(object source, GameCalendarEventObjectList clockObject)
        {
            if (clockObject == null)
            {
                return;
            }

            EventTitle.text = string.Empty;
            EventText.text  = string.Empty;

            EventStatus.text = "Event end";

            foreach (GameCalendarEventObject eve in clockObject.Events)
            {
                GameCalendarEventObject eventObj = eve;
                EventTitle.text += eventObj.Title;
                EventText.text  += eventObj.Text;
            }

            StartCoroutine(ClearTextField(EventTitle, 2f));
            StartCoroutine(ClearTextField(EventText, 2f));
            StartCoroutine(ClearTextField(EventStatus, 2f));

            Debug.Log("Event ended " + CurentDate.text + " " + CurentTime.text);
        }