void MoveToChannel() { CGZone channel = m_visualManager.GetPlayerChannel(m_channel); Sequence sequence = channel.MoveCardToZone(m_card); // Move card to channel sequence.AppendCallback(FinishCommand); }
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); }
/** 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); }