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);
 }
Exemple #3
0
 public void Setup(Task currentItem, ManagerScrollV currentScrollList)
 {
     task           = currentItem;
     nameLabel.text = task.TaskName;
     scrollList     = currentScrollList;
 }