예제 #1
0
    public void SetIndexRand()
    {
        EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>();
        int index = Random.Range(0, bsv.ObjectCount - 1);

        Debug.Log(index);
        bsv.index = index;
    }
예제 #2
0
    public void SetMaxIndex()
    {
        EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>();

        bsv.index = bsv.ObjectCount - 1;
    }