示例#1
0
 private void EditDeck()
 {
     if (Controller != null)
     {
         Controller.LoadDeckToEdit(index, null);
     }
 }
示例#2
0
    public void EditDeck()
    {
        List <GameObject> PawnsList = new List <GameObject> ();

        foreach (GameObject panel in PanelsList)
        {
            if (panel != null)
            {
                if (panel.GetComponent <CardViewPanel> () != null)
                {
                    GameObject pawn = panel.GetComponent <CardViewPanel> ().PanelPawn;
                    if (pawn != null)
                    {
                        PawnsList.Add(pawn);
                    }
                    panel.GetComponent <CardViewPanel> ().PanelPawn = null;
                }
            }
        }
        DisableDeckView();
        DeckTableContrComponent.LoadDeckToEdit(DeckIndex, PawnsList);
    }