Example #1
0
 public void OnCustomerLeft()
 {
     if (m_currentCustomer.IsSpecial)
     {
         Object.Destroy(m_currentCustomer.gameObject);
         m_currentCustomer = m_customerGeneric;
     }
     if (m_orderLogic.IsSpecial)
     {
         GameObject customer = MinigameManager.GetActive <mg_SmoothieSmash>().Resources.GetCustomer(m_orderLogic.SpecialCustomer);
         MinigameSpriteHelper.AssignParentTransform(customer, base.transform);
         customer.transform.localPosition = new Vector2(0f, 0f);
         m_currentCustomer = customer.GetComponent <mg_ss_CustomerObject>();
         m_currentCustomer.Initialize(this, p_isSpecial: true);
     }
     m_currentCustomer.ZipIn();
     m_orderSystemObject.OnCustomerLeft();
     m_customerTransitioning = false;
 }