Example #1
0
 private void MarkCompleted()
 {
     if (MysteryPizza)
     {
         m_gameLogic.Minigame.PlaySFX("mg_pt_sfx_mystery_pizza_end");
     }
     Completed = true;
     m_gameLogic.OnOrderCompleted();
 }
Example #2
0
 private void CheckExit()
 {
     if (!(m_pizzaObject.transform.position.x > m_gameScreen.PizzaSpawnEnd.position.x))
     {
         return;
     }
     if (State == mg_pt_EPizzaState.ACTIVE)
     {
         if (m_gameLogic.Order.MysteryPizza)
         {
             m_gameLogic.OnOrderCompleted();
         }
         else
         {
             m_gameLogic.OnOrderFailed();
         }
     }
     State = mg_pt_EPizzaState.INVALID;
     m_gameLogic.OnPizzaExit();
 }