protected override void Awake() { base.Awake(); s_Instance = this; Log.SetLogger(new LoggerImpl()); Container.BindSingleton <IRefPoolService, RefPoolService>(); Container.BindInstance <IRefPoolServiceConfigReader>(m_RefPoolServiceConfig); Container.BindSingleton <IDownloadService, DownloadService>(); Container.BindInstance <IDownloadServiceConfigReader>(m_DownloadServiceConfig); Container.BindSingleton <ISimpleFactory <IDownloadTaskImpl>, DownloadTaskImplFactory>(); }
protected override void OnDestroy() { s_Instance = null; base.OnDestroy(); }