private void EditDeck() { if (Controller != null) { Controller.LoadDeckToEdit(index, null); } }
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); }