Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>();

        IsEasy = modeData.IsEasy();
        deck   = GetComponent <ZiziDeck>();

        /*
         * hands = new List<int>[4];
         * originals = new List<int>[4];
         * drawns = new List<int>[4];
         * for (int i = 0; i < 4; i++)
         * {
         *  if (drawns[i] == null) drawns[i] = new List<int>();
         *  else drawns[i].Clear();
         * }
         * grave = new List<int>();
         * CardList();
         * InitBackList(); //orginalBack[cardIndex]でbackIndexを返す、ziziは4
         * Delete();
         * Delete();
         * makeoriginals(); //originals配列を作成
         *                   //Record record = GameObject.Find("GameManager").GetComponent<Record>();
         *                   //record.InitRecord(originals);
         *                   //record.DebugRecord();
         */
    }
Exemple #2
0
    // Start is called before the first frame update
    void Start()
    {
        ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>();

        IsEasy    = modeData.IsEasy();
        deck      = GetComponent <ZiziDeck>();
        hands     = new List <int> [4];
        originals = new List <int> [4];
        drawns    = new List <int> [4];

        for (int i = 0; i < 4; i++)
        {
            if (drawns[i] == null)
            {
                drawns[i] = new List <int>();
            }
            else
            {
                drawns[i].Clear();
            }
        }
        grave = new List <int>();
        CardList();
        InitBackList(); //orginalBack[cardIndex]でbackIndexを返す、ziziは4
        Delete();
        Delete();
        makeoriginals(); //originals配列を作成
        //Record record = GameObject.Find("GameManager").GetComponent<Record>();
        //record.InitRecord(originals);
        //record.DebugRecord();
    }
Exemple #3
0
    public GameObject cardPrefab;                  //instantiateするプレファブ

    private void Start()
    {
        deck = GetComponent <ZiziDeck>();   //Deck.csの取得
        DistributeCards();                  //下記メソッドの実行
    }