I need to have a void able to to have brackets { } within a void, or right after: Example() {} or Example({});
public static void IfValueEquals(float isFloat, float ifFloat,/*It says I can't put a void here -->*/ void Action())
{
if(isFloat != ifFloat)
{
return;
}
if (isFloat == ifFloat)
{
Action();
}
}
If you know of a cleaner way, please share with me.
Thanks in advance.