Exemple #1
0
    private void CreateNewBeverageUI(Beverages beverage)
    {
        GlasFeedback feedback = m_ObjectPool.GetGlasFeedback();

        feedback.Activate(beverage, m_MaxPoint, m_MinPoint, m_GlasFeedback.Count);
        feedback.transform.parent = transform;
        m_GlasFeedback.Add(feedback);
    }
Exemple #2
0
    public GlasFeedback GetGlasFeedback()
    {
        GlasFeedback glasFeedback = m_GlasFeedbacks[0];

        for (int i = 0; i < m_GlasFeedbacks.Count; i++)
        {
            if (!m_GlasFeedbacks[i].gameObject.activeInHierarchy)
            {
                glasFeedback = m_GlasFeedbacks[i];
                break;
            }
        }

        return(glasFeedback);
    }