I remember that interface is public by default. Am I wrong? When I tried to implement a "public static" method from an interface. VS told me that the method in the interface is less accessible than the "public static" one. When I added public to the interface it fixed. Isn't interface public by default?
interface IDoubleFloatEventInvoker {
void AddListener(EventName eventName, UnityAction<float, float> unityAction);
}
public static void AddInvoker(EventName eventName, IDoubleFloatEventInvoker invoker)
{
foreach (UnityAction<float, float> listener in doubleFloatListeners[eventName])
{
invoker.AddListener(eventName, listener);
}
doubleFloatInvokers[eventName].Add(invoker);
}
"VS says IDoubleFloatEventInvoker is less accessible than the AddInvoker function"