//-----------------------------------------------Functions----------------------------------------------------// private void SetUpData() { // Get the all the game cards CardsDB cards_db = JsonUtility.FromJson <CardsDB>(CardsDatabase.text); allCards = cards_db.Cards; my_deck = LoadDeckFromPath(currentDeckPath); PopulateDeckAssets(); }
void Awake() { if (cards_db == null) cards_db = new CardsDB(); }