public static void Init(ILogger logger, IInternetChecker internetChecker, IConfigsLoader configsLoader, INotification notification, IAdjustHelper adjustHelper, IAppTransparencyTracker att) { Logger = logger; InternetChecker = internetChecker; ConfigsLoader = configsLoader; Notification = notification; AdjustHelper = adjustHelper; Att = att; }
static GlobalFacade() { Logger = new DummyLogger(); InternetChecker = new DummyInternetChecker(); ConfigsLoader = new DummyConfigLoader(); Notification = new DummyNotificationsClient(); AdjustHelper = new DummyAdjustHelper(); Att = new DummyAppTrackingTransparency(); }
public static void Init(IGlobalFactory factory, MonoBehaviour monoBehaviour) { AdjustHelper = factory.CreateAdjustHelper(); Logger = factory.CreateLogger(); InternetChecker = factory.CreateInternetChecker(); ConfigsLoader = factory.CreateConfigLoader(); Notification = factory.CreateNotifications(); Att = factory.CreateAppTransparencyTracker(); MonoBehaviour = monoBehaviour; }