public void ClickDeckEditButton() { if (curSelectedMainSlot == null) { return; } if (curSelectedMainSlot.Data == null) { tempDeckData = new DeckData("new deck"); } else { tempDeckData = new DeckData(curSelectedMainSlot.Data.DeckName); tempDeckData.CopyData(curSelectedMainSlot.Data.DataDic); DeckManager.Instance.CheckDeckEffect(tempDeckData); } ActiveDeckEditUI(); }