标签: c# events unity3d delegates unity5
我正在将方法转换为委托事件。
TriggerPressed += new InteractionEventHandler(DetectManipulation);
当我尝试删除某些方法时,似乎并不总是正确删除。
TriggerPressed -= DetectManipulation;
即使假设该方法已取消关联,该事件仍会被触发。
我希望能够以某种方式打印出给定委托下的方法列表。有什么方法可以做到这一点吗?或者我不明白什么?
谢谢。
答案 0 :(得分:1)
猜猜你正在寻找Delegate.GetInvocationList方法