예제 #1
0
 public void OnNotify(AObserverEvent observerEvent)
 {
     if (observerEvent is BakingStartEvent)
     {
         _activeTutorial?.BakingStart();
     }
     else if (observerEvent is SideBakedEvent)
     {
         _activeTutorial?.SideBakedDone();
     }
     else if (observerEvent is BakingDoneEvent)
     {
         _activeTutorial?.BakingDone();
     }
     else if (observerEvent is BakingFlipEvent)
     {
         _activeTutorial?.BakingFlip();
     }
     else if (observerEvent is CookingStartEvent)
     {
         _activeTutorial?.CookingStart();
     }
     else if (observerEvent is CookingDoneEvent)
     {
         _activeTutorial?.CookingDone();
     }
     else if (observerEvent is FryerStartEvent)
     {
         _activeTutorial?.FryingStart();
     }
     else if (observerEvent is FryerStopEvent)
     {
         _activeTutorial?.FryingDone();
     }
     else if (observerEvent is CuttableCutEvent)
     {
         _activeTutorial?.IngredientCut();
     }
     else if (observerEvent is CuttableCutUpEvent)
     {
         _activeTutorial?.IngredientCutUp();
     }
     else if (observerEvent is CuttableOnCuttingBoardEvent)
     {
         _activeTutorial?.IngredientToCuttingBoard();
     }
     else if (observerEvent is PullablePulledEvent)
     {
         _activeTutorial?.IngredientPulled();
     }
     else if (observerEvent is IngredientDoneEvent)
     {
         _activeTutorial?.IngredientDone((observerEvent as IngredientDoneEvent).ingredient);
     }
     else if (observerEvent is CookingStirEvent)
     {
         _activeTutorial?.CookingStir();
     }
     else if (observerEvent is DishStirEvent)
     {
         _activeTutorial?.DishStir();
     }
     else if (observerEvent is CookingAllIngredientsDoneEvent)
     {
         _activeTutorial?.CookingAllIngredientsDone();
     }
     else if (observerEvent is SideDishDraggedToMain)
     {
         _activeTutorial?.SideDishToMain();
     }
 }