Exemple #1
0
    //-----------------------------------------------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();
    }
Exemple #2
0
 void Awake()
 {
     if (cards_db == null) cards_db = new CardsDB();
 }