I'm using Unity and i have a class full of gameObjects, i want to take an instance of that class and compare all the values against one i already have. However in order to do this i need to have the filed value, how do i get this?, Here's my curent code:
void UpdatePage() {
foreach(FieldInfo field in Pages.GetType().GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance)) {
Page = field.GetValue();
}
}