protected void Init() { _resContainer = this.gameObject.AddComponentOnce <ResourceContainer>(); _inResourcesLoader = this.gameObject.AddComponentOnce <InResourcesLoader>(); _wwwLoader = this.gameObject.AddComponentOnce <WWWResLoader>(); _outResourcesLoader = this.gameObject.AddComponentOnce <OutResourcesLoader>(); _inResourcesLoader.OnResourceDone += OnResourceDone; _wwwLoader.OnResourceDone += OnResourceDone; _outResourcesLoader.OnResourceDone += OnResourceDone; _waitingList = new LinkedList <Resource>(); _loadingList = new LinkedList <Resource>(); }