public void ClickSlotEditSelect() { if (curSelectedEditDeckSlot == null) { return; } if (curSelectedEditSlot == null) { return; } int index = curSelectedEditDeckSlot.Index; if (tempDeckData.DataDic.ContainsKey(index)) { tempDeckData.DataDic[index] = curSelectedEditSlot.Data; } else { tempDeckData.AddData(index, curSelectedEditSlot.Data); } DeckManager.Instance.CheckDeckEffect(tempDeckData); curSelectedEditSlot.ActiveHighlight(false); curSelectedEditSlot = null; ActiveDeckEditUI(); }