Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. for (int p = 0; p < titles.Count; p++)
  2. {
  3. try
  4. {
  5. if (filter.propertiesAdded.Count == 0)
  6. {
  7. filter.propertiesAdded.Add(titleArray[0]);
  8. }
  9.  
  10.  
  11. if (!filter.propertiesAdded[p].Equals(titleArray[p]))
  12. {
  13. Debug.Log(filter.propertiesAdded.Count + "count in if statement");
  14. filter.propertiesAdded.Add(titleArray[p]);
  15. Debug.Log("Adding: " + titleArray[p]);
  16. }
  17. }
  18. catch (System.IndexOutOfRangeException e)
  19. {
  20. Debug.Log(p + "= index");
  21. Debug.Log(filter.propertiesAdded.Count + "filter count");
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement