I have an Action like this:
Action<string> myAction;
I add a method in OnEnable() this way:
myAction += param =>
{
Debug.Log(param);
}
And later in OnDisable() I would like to remove it. How to do it?
I have an Action like this:
Action<string> myAction;
I add a method in OnEnable() this way:
myAction += param =>
{
Debug.Log(param);
}
And later in OnDisable() I would like to remove it. How to do it?