You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static class PersonSystem
{
public static void Foo(this Person _self)
{
_self.SetCallback(_self.OnCallbackEvent); // 这里只有传入扩展方法才会crash,匿名函数,delegate,静态方法均没问题
}
private static void OnCallbackEvent(this Person _self)
{
Debug.Log("call back event.");
}
public static void SetCallback(this Person _self, Action _callback)
{
_callback?.Invoke();
}
}
No description provided.
The text was updated successfully, but these errors were encountered: