public void SetIndexRand() { EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>(); int index = Random.Range(0, bsv.ObjectCount - 1); Debug.Log(index); bsv.index = index; }
public void SetMaxIndex() { EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>(); bsv.index = bsv.ObjectCount - 1; }