示例#1
0
文件: GMScript.cs 项目: Abhimjith/Try
    // 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>();
    }
示例#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>();
    }