Пример #1
0
        void OnAddHandler()
        {
            string value = m_input.text;

            if (!string.IsNullOrEmpty(value))
            {
                Rednity.Dispatch(TodoActionCreators.AddItem(value));

                m_input.text = "";
            }
        }
Пример #2
0
 void RemoveHandler()
 {
     Rednity.Dispatch(TodoActionCreators.RemoveItem(_task.Id));
 }
Пример #3
0
 void ToggleTask()
 {
     Rednity.Dispatch(TodoActionCreators.ToggleItem(_task.Id));
 }