Esempio n. 1
0
    public void Reuse(int line)
    {
        GameObject b = btnPool.Dequeue();

        b.SetActive(true);
        ButtonData bd = b.GetComponent <ButtonData>();

        bd.SetOriginPos(spawnPosX[line - 1], 800);
        bd.SetJudgePoint(judgePoints[line - 1]);
        bd.SetDistT(dist);
        b.GetComponent <Image>().sprite = btnImg[(line - 1) % 2];
    }