This might be a bit misplaced but is there a way to call a function by name in Unity?
I've tried Invoke(string, float) but that doesn't accept parameters. I've tried StartCoroutine but that requires a yield return new statement. I've also tried reflection, like this:
Type thisType = this.GetType(); MethodInfo theMethod = thisType.GetMethod(TheCommandString); theMethod.Invoke(this, userParameters);
But this doesn't even compile giving an error of
NullReferenceException: Object reference not set to an instance of an object
and I don't really know why. Thanks for the help guys.