private void OnMouseDown() { if (!EventSystem.current.IsPointerOverGameObject()) { if (inDeck) { Destroy(overlay); overlay = null; } else { overlay = Instantiate(PrefabDictionary.Instance().preadventureCardInDeckOverlay, gameObject.transform); } inDeck = !inDeck; PreadventureCardController.Instance().toggleCard(GetComponent <BaseCard>().details, inDeck); } }
public void startPreadventure(Adventure adventure) { nextAdventure = adventure; switchToNode("Preadventure"); PreadventureCardController.Instance().setupCollection(); }