Ejemplo n.º 1
0
    void MoveToChannel()
    {
        CGZone   channel  = m_visualManager.GetPlayerChannel(m_channel);
        Sequence sequence = channel.MoveCardToZone(m_card); // Move card to channel

        sequence.AppendCallback(FinishCommand);
    }
Ejemplo n.º 2
0
    void MoveToChannel()
    {
        CGZone   channel  = m_visualManager.GetOpponentChannel(m_channel);
        Sequence sequence = channel.MoveCardToZone(m_card);         // Move card to channel

        sequence.Insert(0, m_card.SetFaceDirectionSeq(true, 0.4f)); // Turn card face-up
        sequence.AppendCallback(FinishCommand);
    }
Ejemplo n.º 3
0
    /** Close the menu, returning all un-selected cards to the given zone */
    public void Close(CGZone previousZone)
    {
        List <CardVisual> unselectedCards = new List <CardVisual>();

        foreach (CardVisual card in m_cards)
        {
            unselectedCards.Add(card);
        }

        foreach (CardVisual unselectedCard in unselectedCards)
        {
            previousZone.MoveCardToZone(unselectedCard);
        }

        // Close the menu
        Destroy(gameObject);
    }