public bool HandleEvent(IGenericEvent evt) { if (evt is AddCardtoDeckScrollListEvent) { AddCardtoDeckScrollListEvent add = evt as AddCardtoDeckScrollListEvent; AddButtontoDeckListUI(add.cardID, add.cardName, add.traits, add.flavor); return(true); } if (evt is InitializeDeckBuilerDeckUIEvent) { InitializationFunction(); return(true); } return(false); }
public bool HandleEvent(IGenericEvent evt) { if (evt is AddCardtoDeckScrollListEvent) { AddCardtoDeckScrollListEvent add = evt as AddCardtoDeckScrollListEvent; //Debug.Log("Name " + add.cardName + " ID: " + add.cardID + " added to deck list"); return(true); } if (evt is InitializeDeckBuilderListUIEvent) { InitializationFunction(); return(true); } return(false); }