如何从带有参数的Action中删除方法?

时间:2021-07-15 15:58:17

标签: c# unity3d action

我有一个这样的操作:

    Action<string> myAction;

我以这种方式在 OnEnable() 中添加了一个方法:

    myAction += param => 
    {
        Debug.Log(param);
    }

稍后在 OnDisable() 中我想删除它。怎么做?

0 个答案:

没有答案
相关问题