Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
 public bool CreateCard(TblCards card)
 {
     db.TblCards.Add(card);
     return(Save());
 }