Example #1
0
    // Update is called once per frame
    void Update()
    {
        /*
         * panel = obj.GetComponentsInChildren<Transform>();
         * len = panel.Length;
         * GameObject rand = panel[Random.Range(0,len)].gameObject;*/
        //reSpawn();
        //Debug.Log(reSwapn.reSpawnCheck);

        if (handData.reSpawnCheck == true || reSwapn.finalPos == handData.handData)
        {
            clearBoard();
            spawnCardTemp();
            delay -= Time.deltaTime;
            if (delay <= 0)
            {
                handData.reSpawnCheck = false;
                reSwapn.setold_handdata();
                SortCheck.checkinitial = false;
                SortCheck.isSort       = false;
                Debug.Log("SortCheck.checkinitial : " + SortCheck.checkinitial);
                clearBoard();
                Shuffle();
                spawnCardBySpawnData();
                setHandData();
                //checkPosition = checkPos.GetComponent<CheckPosition>();

                delay = 0.5f;
            }
        }
    }