Ejemplo n.º 1
0
    // Start is called before the first frame update

    void Start()
    {
        Deck         = new List <string>();
        DroppedCards = new List <string>();

        GameStart();
        SS  = FindObjectOfType <SortingAndSetCreating>();
        SOG = FindObjectOfType <MyGameStates>();
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        List <string> deck = GMScript.CreateDeck();

        gm  = FindObjectOfType <GMScript>();
        SSC = FindObjectOfType <SortingAndSetCreating>();
        SOG = FindObjectOfType <MyGameStates>();
        ET  = FindObjectOfType <EnemyTest>();
        int i = 0;

        foreach (string card in deck)
        {
            if (this.name == card)
            {
                Cardfaces = gm.Cards[i];

                break;
            }
            i++;
        }
        Sprender   = GetComponent <SpriteRenderer>();
        selectable = GetComponent <selectable>();
    }