コード例 #1
0
    private void DrawHand()
    {
        m_generator.Generate();
        m_currentHand = m_generator.GetHand();

        m_currentAvailableCarriages = new List <Carriage>();
        for (int i = 0; i < m_currentHand.Count; i++)
        {
            Carriage carriage = CreateCarriage(m_currentHand[i]);
            carriage.OnSelect += OnCarriageSelected;
            carriage.transform.SetParent(m_carriageContainer);

            m_currentAvailableCarriages.Add(carriage);
        }

        m_carriageContainer.GetComponent <CarriageMenu>().Init();
    }