Example #1
0
 public void Pull(PullableFoodPullable pulled)
 {
     if (_pullables.Contains(pulled))
     {
         currentPullable = pulled;
         Notify(new PullablePulledEvent(this));
     }
 }
Example #2
0
 public void AddedToDish()
 {
     if (currentPullable != null)
     {
         _pullables.Remove(currentPullable);
         Destroy(currentPullable.gameObject);
         currentPullable = null;
         if (_pullables.Count == 0)
         {
             Notify(new IngredientDoneEvent(this));
         }
     }
 }