✅ Reflection cant find the constructor of a class that matches the given arguments
Hi! so im dipping my toes into reflections and i figured i could try to make a factory function with it.
this works for the most part but it fails for this class with this constructor:
this is how i call the function
and this is the exception i get:
Note: when calling
this works for the most part but it fails for this class with this constructor:
this is how i call the function
and this is the exception i get:
System.MissingMethodException: 'Constructor on type 'Caravan.Models.GameStates.CardSetupState' not found.'Note: when calling
SetState to create the CardSetupState the second branch is hit (obviously). CurrentState and LocalPlayer are both valid references