private void Awake() { //If we don't currently have a game control... if (instance == null) { //...set this one to be it... instance = this; } //...otherwise... else if (instance != this) { //...destroy this one because it is a duplicate. Destroy(gameObject); } //creem i inicialitzem taula tblCards = new TblCards(); }
public bool CreateCard(TblCards card) { db.TblCards.Add(card); return(Save()); }