private void OnEnable() { LaLlunaData lluna = SaveCards.LoadLaLluna(); cardName = lluna.cardName; stateCard = lluna.cardState; }
// Start is called before the first frame update void Start() { SacerdotessaData sacerdotessa = SaveCards.LoadSacerdotessa(); ElDiableData elDiable = SaveCards.LoadEldiable(); LaLlunaData laLluna = SaveCards.LoadLaLluna(); LaTempransaData laTempransa = SaveCards.LoadLaTempransa(); CartesList sacerd = new CartesList(); sacerd.cardName = sacerdotessa.cardName; sacerd.cardState = sacerdotessa.cardState; CartesList diable = new CartesList(); diable.cardName = elDiable.cardName; diable.cardState = elDiable.cardState; CartesList lluna = new CartesList(); lluna.cardName = laLluna.cardName; lluna.cardState = laLluna.cardState; CartesList tempransa = new CartesList(); tempransa.cardName = laTempransa.cardName; tempransa.cardState = laTempransa.cardState; cartesList.Add(diable); cartesList.Add(sacerd); cartesList.Add(lluna); cartesList.Add(tempransa); }