I have a class that looks like this:
public abstract class NetBehaviour
{
void setSyncFloat (SyncFloat[] values)
{
// Find all SyncFloat fields in the child
// class (the one that derived this class).
}
}
How do I go about finding all the fields of a specific type in a class that derived from this class within this very class? It seems a bit tricky and I'm guessing I'll need reflections. Could anyone help me out?
Aucun commentaire:
Enregistrer un commentaire