This is quite possible, with implicit interface implementation. Your problem is unrelated to the peculiarities of event members in the interfaces. Your only problem is the definition of
EventHandler
; you can simply use available
System.EventHandler
.
For example:
public class MonoBehaviour { }
public interface MyEvent{
event System.EventHandler myNewEvent;
}
public class MyClass : MonoBehaviour, MyEvent {
public event System.EventHandler myNewEvent;
}
If and when you need your own delegate type (unlikely; usually it's enough to only define the class derived from
System.EventArgs
and use the event handler type instantiated from the generic type
System.EventHander<your_event_args_type_here>
), make sure the definition is accessible where you use it.
—SA