public void Initialize(mg_ss_Order p_orderLogic, mg_ss_OrderSystemObject p_orderSystemObject) { m_orderLogic = p_orderLogic; m_orderSystemObject = p_orderSystemObject; m_currentCustomer = m_customerGeneric; m_customerGeneric.Initialize(this, p_isSpecial: false); }
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; }
protected void Awake() { m_customerGeneric = GetComponentInChildren <mg_ss_CustomerObject>(); m_firstOrder = true; }