How to make Action take in a function with parameters AND without

Yo, help please, scenario below


Action<int> myAction

void myFuncWithPara(int)
void myFuncWithoutPara()

myAction += myFuncWithPara; //All good
myAction += myFuncWithoutPara; //Not good

The last line where I add the function without Para can’t be run


How do I make it so that my action can take in with or without? Or do I have to do something else other than Actions?

Just specify Action<int> myAction;. That should fix it…