private void RemoveItem(Task taskToRemove, ManagerScrollV shopList) { for (int i = shopList.taskList.Count - 1; i >= 0; i--) { if (shopList.taskList[i] == taskToRemove) { shopList.taskList.RemoveAt(i); } } }
void AddItem(Task taskToAdd, ManagerScrollV shopList) { shopList.taskList.Add(taskToAdd); }
public void Setup(Task currentItem, ManagerScrollV currentScrollList) { task = currentItem; nameLabel.text = task.TaskName; scrollList = currentScrollList; }