Пример #1
0
 public void ButtonClick()
 {
     loopScrollRect.totalCount = loopScrollRect.totalCount + 1;
     loopScrollRect.DeleteItemAtEnd();
     loopScrollRect.NewItemAtEnd();
     loopScrollRect.NewItemAtEnd();
     if (logToConsole)
     {
         Debug.LogError(counter.ToString() + " - CLICK");
     }
     needToScrollDown  = true;
     skipScrollUpdates = 1; // verticalNormalizedPosition is actually updated on next frame
     //loopScrollRect.up
     //needToScrollDown = true;
 }