public void CoroutineRunTest(ICoroutineManager coroutineMgr)
        {
            var timeProvider = CoroutineSystemTestUtil.TestTimeProvider();

            coroutineMgr.TimeProvider = timeProvider;
            var coroutine = (EnumeratorCoroutineProcessor)coroutineMgr.StartCoroutine(this, InterruptableCoroutine());

            var state = coroutine.State;

            Assert.AreEqual(CoroutineState.NotStarted, state);
            coroutine.OnStateChange += newState => state = newState;

            timeProvider.OnUpdate += Raise.Event <Action>();
            Assert.AreEqual(1, _count);
            coroutine.Pause();
            Assert.AreEqual(CoroutineState.Paused, state);
            Assert.AreEqual(CoroutineState.Paused, coroutine.State);

            timeProvider.OnUpdate += Raise.Event <Action>();
            Assert.AreEqual(1, _count);
            coroutine.Resume();
            Assert.AreEqual(CoroutineState.InProgress, state);
            Assert.AreEqual(CoroutineState.InProgress, coroutine.State);

            timeProvider.OnUpdate += Raise.Event <Action>();
            Assert.AreEqual(11, _count);
            coroutine.Stop();
            Assert.AreEqual(CoroutineState.Stopped, state);
            Assert.AreEqual(CoroutineState.Stopped, coroutine.State);

            timeProvider.OnUpdate += Raise.Event <Action>();
            Assert.AreEqual(11, _count);
            Assert.IsTrue(coroutine.IsCompleted);
        }
Ejemplo n.º 2
0
 public SessionFactory(AbstractLogger logger, ICoroutineManager coroutineManager, IStopwatch pollCountdownStopwatch, IEpochTime epochTime, DatabaseCorruptionHandler databaseCorruptionHandler, INotificationQueue notificationQueue, INotificationDispatcher notificationDispatcher, ISessionStatus sessionStatus, IMixWebCallFactoryFactory mixWebCallFactoryFactory, IWebCallEncryptorFactory webCallEncryptorFactory, IMixSessionStarter mixSessionStarter, IKeychain keychain, ISessionRefresherFactory sessionRefresherFactory, IGuestControllerClientFactory guestControllerClientFactory, IRandom random, IEncryptor encryptor, IFileSystem fileSystem, IWwwCallFactory wwwCallFactory, string localStorageDirPath, string clientVersion, IDatabaseDirectoryCreator databaseDirectoryCreator, IDocumentCollectionFactory documentCollectionFactory, IDatabase database)
 {
     this.logger                       = logger;
     this.coroutineManager             = coroutineManager;
     this.pollCountdownStopwatch       = pollCountdownStopwatch;
     this.epochTime                    = epochTime;
     this.databaseCorruptionHandler    = databaseCorruptionHandler;
     this.notificationQueue            = notificationQueue;
     this.notificationDispatcher       = notificationDispatcher;
     this.sessionStatus                = sessionStatus;
     this.mixWebCallFactoryFactory     = mixWebCallFactoryFactory;
     this.webCallEncryptorFactory      = webCallEncryptorFactory;
     this.mixSessionStarter            = mixSessionStarter;
     this.keychain                     = keychain;
     this.sessionRefresherFactory      = sessionRefresherFactory;
     this.guestControllerClientFactory = guestControllerClientFactory;
     this.random                       = random;
     this.encryptor                    = encryptor;
     this.fileSystem                   = fileSystem;
     this.wwwCallFactory               = wwwCallFactory;
     this.localStorageDirPath          = localStorageDirPath;
     this.clientVersion                = clientVersion;
     this.databaseDirectoryCreator     = databaseDirectoryCreator;
     this.documentCollectionFactory    = documentCollectionFactory;
     this.database                     = database;
 }
Ejemplo n.º 3
0
 public CoroutinePerformanceTest(
     ICoroutineManager coroutineManager,
     IFactory <object> yieldInstructionFactory)
 {
     this.coroutineManager        = coroutineManager;
     this.yieldInstructionFactory = yieldInstructionFactory;
 }
Ejemplo n.º 4
0
 public Session(AbstractLogger logger, IInternalLocalUser localUser, string guestControllerAccessToken, bool pushNotificationsEnabled, INotificationPoller notificationPoller, ICoroutineManager coroutineManager, IDatabase database, IUserDatabase userDatabase, IGuestControllerClient guestControllerClient, IMixWebCallFactory mixWebCallFactory, IEpochTime epochTime, DatabaseCorruptionHandler databaseCorruptionHandler, ISessionStatus sessionStatus, IKeychain keychain, IGetStateResponseParser getStateResponseParser, string clientVersion, INotificationQueue notificationQueue)
 {
     this.logger                                     = logger;
     this.localUser                                  = localUser;
     this.notificationPoller                         = notificationPoller;
     this.coroutineManager                           = coroutineManager;
     this.database                                   = database;
     this.userDatabase                               = userDatabase;
     this.guestControllerClient                      = guestControllerClient;
     this.mixWebCallFactory                          = mixWebCallFactory;
     this.epochTime                                  = epochTime;
     this.databaseCorruptionHandler                  = databaseCorruptionHandler;
     this.sessionStatus                              = sessionStatus;
     this.keychain                                   = keychain;
     this.getStateResponseParser                     = getStateResponseParser;
     this.clientVersion                              = clientVersion;
     this.notificationQueue                          = notificationQueue;
     GuestControllerAccessToken                      = guestControllerAccessToken;
     guestControllerClient.OnAccessTokenChanged     += HandleGuestControllerAccessTokenChanged;
     guestControllerClient.OnAuthenticationLost     += HandleAuthenticationLost;
     mixWebCallFactory.OnAuthenticationLost         += HandleAuthenticationLost;
     localUser.OnPushNotificationsToggled           += HandlePushNotificationsToggled;
     localUser.OnPushNotificationReceived           += HandlePushNotificationReceived;
     localUser.OnDisplayNameUpdated                 += HandleDisplayNameUpdated;
     databaseCorruptionHandler.OnCorruptionDetected += HandleCorruptionDetected;
     updateEnumerator                                = Update();
     coroutineManager.Start(updateEnumerator);
     notificationPoller.OnNotificationsPolled += HandleNotificationsPolled;
     notificationPoller.UsePollIntervals       = !pushNotificationsEnabled;
     this.sessionStatus.IsPaused = true;
     notificationPoller.OnSynchronizationError += HandleNotificationPollerSynchronizationError;
 }
Ejemplo n.º 5
0
 public WwwCallFactory(AbstractLogger logger, ICoroutineManager coroutineManager, IStopwatchFactory stopwatchFactory, IWwwFactory wwwFactory)
 {
     this.logger           = logger;
     this.coroutineManager = coroutineManager;
     this.stopwatchFactory = stopwatchFactory;
     this.wwwFactory       = wwwFactory;
 }
Ejemplo n.º 6
0
 public WebRequestLoader(ICoroutineManager coroutineManager, string supportsMask = "https", WebRequestSettings webRequestSettings = null,
                         IAntiCacheUrlResolver antiCacheUrlResolver = null) : base(supportsMask,
                                                                                   coroutineManager, new ResourceMemoryCache())
 {
     _webRequestSettings  = webRequestSettings;
     AntiCacheUrlResolver = antiCacheUrlResolver;
 }
 public VersionedDiskCachedResourceLoader(string serverUrl, ICache <byte[]> fileCacheOverride, ICache <object> memoryCacheOverride,
                                          ICoroutineManager coroutineManager, IAntiCacheUrlResolver antiCacheUrlResolver = null, string supportMask = "VersionedResource") : base(supportMask, coroutineManager, memoryCacheOverride)
 {
     Manifest             = new AssetsManifest <AssetFileInfo>();
     AntiCacheUrlResolver = antiCacheUrlResolver;
     _fileCaching         = fileCacheOverride;
     _serverUrl           = serverUrl;
 }
Ejemplo n.º 8
0
 public LerpVisualTest()
 {
     _graphics             = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     IsFixedTimeStep       = true;
     _coroutineManager     = new CoroutineManager();
     _coroutineManager.Run(DoSomethingAsync());
 }
Ejemplo n.º 9
0
 public VersionedDiskCachedResourceWorker(AssetFileInfo assetInfo, string uri, Action <VersionedDiskCachedResourceWorker> onLoadingComplete,
                                          ICoroutineManager coroutineManager, IAntiCacheUrlResolver antiCacheUrlResolver, WebRequestSettings webRequestSettings = null) :
     base(uri, null, coroutineManager, antiCacheUrlResolver, webRequestSettings)
 {
     AssetInfo            = assetInfo;
     _onLoadingComplete   = onLoadingComplete;
     _isLoadFromFileCache = false;
 }
 public LocalFolderBundlesLoader(string localFolder, ICoroutineManager coroutineManager, string supportsMask = "LocalFolderBundle",
                                 AssetBundleManifest manifest = null) : base(supportsMask, coroutineManager)
 {
     Manifest          = manifest ?? new AssetBundleManifest();
     _memoryCache      = new BundlesMemoryCache(_resourceStorage);
     _localFolder      = localFolder;
     SupportsMask      = supportsMask;
     _coroutineManager = coroutineManager;
 }
Ejemplo n.º 11
0
 public VersionedDiskCachedResourceWorker(string uri, AssetFileInfo assetInfo, ICache <byte[]> fileCache, Action <VersionedDiskCachedResourceWorker> onLoadingComplete,
                                          ICoroutineManager coroutineManager) :
     base(uri, null, coroutineManager, null)
 {
     AssetInfo            = assetInfo;
     _fileCache           = fileCache;
     _onLoadingComplete   = onLoadingComplete;
     _isLoadFromFileCache = true;
 }
Ejemplo n.º 12
0
        public NPCPilot(Ship ship, CollisionDataObject userdata)
        {
            PilotType = PilotType.NPC;
            Ship      = ship;

            _coroutineManager = new CoroutineManager();

            ship.SetPilotData(userdata, false);
        }
Ejemplo n.º 13
0
 public WebRequestBundlesLoader(string serverUrl, ICoroutineManager coroutineManager, string supportMask = "WebRequestBundle",
                                WebRequestSettings webRequestSettings = null,
                                AssetBundleManifest manifest          = null, IAntiCacheUrlResolver antiCacheUrlResolver = null) : base(supportMask, coroutineManager)
 {
     Manifest             = manifest ?? new AssetBundleManifest();
     _memoryCache         = new BundlesMemoryCache(_resourceStorage);
     AntiCacheUrlResolver = antiCacheUrlResolver;
     ServerUrl            = serverUrl;
     _webRequestSettings  = webRequestSettings;
 }
Ejemplo n.º 14
0
 public ICoroutineManager GetCoroutineManager()
 {
     if (_isValid)
     {
         if (_coroutines == null)
         {
             _coroutines = _runtime.CreateCoroutineManager();
         }
     }
     return(_coroutines);
 }
Ejemplo n.º 15
0
		public MixSessionStarter(AbstractLogger logger, IRsaEncryptor rsaEncryptor, IDatabase database, IWebCallEncryptorFactory webCallEncryptorFactory, IWebCallEncryptor sessionStartEncryptor, IMixWebCallFactoryFactory mixWebCallFactoryFactory, IKeychain keychain, ICoroutineManager coroutineManager, ISessionRefresherFactory sessionRefresherFactory)
		{
			this.logger = logger;
			this.rsaEncryptor = rsaEncryptor;
			this.database = database;
			this.webCallEncryptorFactory = webCallEncryptorFactory;
			this.sessionStartEncryptor = sessionStartEncryptor;
			this.mixWebCallFactoryFactory = mixWebCallFactoryFactory;
			this.keychain = keychain;
			this.coroutineManager = coroutineManager;
			this.sessionRefresherFactory = sessionRefresherFactory;
		}
Ejemplo n.º 16
0
    public VirtualDie(string name, string address, Die.DieType type, ICoroutineManager coroutineManager)
    {
        this.name             = name;
        this.address          = address;
        this.dieType          = type;
        this.coroutineManager = coroutineManager;

        messageDelegates = new Dictionary <DieMessageType, MessageReceivedDelegate>();

        // Setup delegates for face and telemetry
        messageDelegates.Add(DieMessageType.RequestState, OnRequestStateMessage);
        messageDelegates.Add(DieMessageType.WhoAreYou, OnWhoAreYouMessage);
    }
Ejemplo n.º 17
0
 public WwwCall(AbstractLogger logger, int requestId, Uri uri, HttpMethod method, byte[] body, Dictionary <string, string> headers, ICoroutineManager coroutineManager, IStopwatch stopwatch, IWwwFactory wwwFactory, long latencyWwwCallTimeout, long maxWwwCallTimeout)
 {
     RequestId                  = requestId;
     this.logger                = logger;
     this.uri                   = uri;
     this.method                = method;
     requestBody                = body;
     requestHeaders             = headers;
     this.coroutineManager      = coroutineManager;
     this.stopwatch             = stopwatch;
     this.wwwFactory            = wwwFactory;
     this.latencyWwwCallTimeout = latencyWwwCallTimeout;
     this.maxWwwCallTimeout     = maxWwwCallTimeout;
 }
Ejemplo n.º 18
0
 public UserDatabase(IDocumentCollection <AlertDocument> alerts, IDocumentCollection <FriendDocument> friends, IDocumentCollection <FriendInvitationDocument> friendInvitations, IDocumentCollection <UserDocument> users, byte[] encryptionKey, string dirPath, IEpochTime epochTime, IDocumentCollectionFactory documentCollectionFactory, DatabaseCorruptionHandler databaseCorruptionHandler, ICoroutineManager coroutineManager)
 {
     this.alerts                    = alerts;
     this.friends                   = friends;
     this.friendInvitations         = friendInvitations;
     this.users                     = users;
     this.encryptionKey             = encryptionKey;
     this.dirPath                   = dirPath;
     this.epochTime                 = epochTime;
     this.documentCollectionFactory = documentCollectionFactory;
     this.databaseCorruptionHandler = databaseCorruptionHandler;
     this.coroutineManager          = coroutineManager;
     callbacks             = new Dictionary <long, Action>();
     pendingIndexedThreads = new List <long>();
 }
Ejemplo n.º 19
0
        public void Destroy()
        {
            if (!_isValid)
            {
                return;
            }
            _isValid = false;

            try
            {
                OnDestroy?.Invoke(this);
            }
            catch (Exception e)
            {
                _runtime.GetLogger()?.WriteException(e);
            }
            _stringCache.Destroy();
            _atoms.Clear();

            JSApi.JS_FreeValue(_ctx, _numberConstructor);
            JSApi.JS_FreeValue(_ctx, _stringConstructor);
            JSApi.JS_FreeValue(_ctx, _functionConstructor);
            JSApi.JS_FreeValue(_ctx, _globalObject);
            JSApi.JS_FreeValue(_ctx, _operatorCreate);

            JSApi.JS_FreeValue(_ctx, _moduleCache);
            JSApi.JS_FreeValue(_ctx, _require);
            JSApi.JS_FreeContext(_ctx);
            var id = _contextId;

            _contextId = -1;

            if (_coroutines != null)
            {
                _coroutines.Destroy();
                _coroutines = null;
            }

            _ctx = JSContext.Null;
            try
            {
                OnAfterDestroy?.Invoke(id);
            }
            catch (Exception e)
            {
                _runtime.GetLogger()?.WriteException(e);
            }
        }
Ejemplo n.º 20
0
        protected BaseRequestWorker(string uri, ICoroutineManager coroutineManager, IAntiCacheUrlResolver antiCacheUrlResolver = null)
        {
            if (coroutineManager == null)
            {
                throw new ArgumentNullException("coroutineManager");
            }

            if (string.IsNullOrEmpty(uri))
            {
                throw new ArgumentException("Uri is null or empty", "uri");
            }

            _coroutineManager     = coroutineManager;
            _antiCacheUrlResolver = antiCacheUrlResolver;
            _loadingOperations    = new List <IResourceSystemLoadingOperation>();
            Uri = uri;
        }
Ejemplo n.º 21
0
        public GeolocationGetter(AbstractLogger logger, ICoroutineManager coroutineManager, string mixApiHostUrl, string mixClientToken, string localStorageDirPath, IKeychain keychain)
        {
            SystemStopwatchFactory   stopwatchFactory         = new SystemStopwatchFactory();
            SystemWwwFactory         wwwFactory               = new SystemWwwFactory();
            WwwCallFactory           wwwCallFactory           = new WwwCallFactory(logger, coroutineManager, stopwatchFactory, wwwFactory);
            JsonWebCallEncryptor     webCallEncryptor         = new JsonWebCallEncryptor();
            MixWebCallQueue          webCallQueue             = new MixWebCallQueue();
            NoOpSessionRefresher     sessionRefresher         = new NoOpSessionRefresher();
            FileSystem               fileSystem               = new FileSystem();
            DatabaseDirectoryCreator databaseDirectoryCreator = new DatabaseDirectoryCreator(fileSystem, localStorageDirPath);
            string sdkDatabasesDirectory = databaseDirectoryCreator.GetSdkDatabasesDirectory();
            DocumentCollectionFactory documentCollectionFactory = new DocumentCollectionFactory();
            DatabaseCorruptionHandler databaseCorruptionHandler = new DatabaseCorruptionHandler(logger, fileSystem, sdkDatabasesDirectory);
            SystemRandom      random            = new SystemRandom();
            SystemEpochTime   epochTime         = new SystemEpochTime();
            Database          database          = new Database(keychain.LocalStorageKey, random, epochTime, databaseDirectoryCreator, documentCollectionFactory, databaseCorruptionHandler);
            MixWebCallFactory mixWebCallFactory = new MixWebCallFactory(logger, mixApiHostUrl, wwwCallFactory, webCallEncryptor, string.Empty, string.Empty, mixClientToken, webCallQueue, sessionRefresher, epochTime, database);

            geolocationGetter = new Disney.Mix.SDK.Internal.GeolocationGetter(logger, mixWebCallFactory);
        }
Ejemplo n.º 22
0
 public GameCycleController(ICoroutineManager coroutineManager,
                            IBlockSpawnController spawnController,
                            IBlockGravityController gravityController,
                            IBlockJoinController joinController,
                            IBlockMergeController mergeController,
                            List <IGameFinishListener> gameFinishListeners,
                            List <IGameStartListener> gameStartListeners,
                            ILevelModel levelModel,
                            ILogModuleFactory logModuleFactory)
 {
     _coroutineManager    = coroutineManager;
     _spawnController     = spawnController;
     _gravityController   = gravityController;
     _joinController      = joinController;
     _mergeController     = mergeController;
     _gameFinishListeners = gameFinishListeners;
     _gameStartListeners  = gameStartListeners;
     _levelModel          = levelModel;
     _log = logModuleFactory.Create(this);
 }
Ejemplo n.º 23
0
    public ConnectionMenuManager(
        [Inject(Id = Identifiers.ConnetionMenuCreateServerButton)] Button serverButton,
        [Inject(Id = Identifiers.ConnetionMenuJoinServerButton)] Button joinButton,
        [Inject(Id = Identifiers.ConnetionMenuBackButton)] Button backButton,
        ClientInfo clientInfo,
        ServerManager serverManager,
        ClientConnectionInitializer connectionInitializer,
        ConnectionMenuMessageSender connectionMenuMessageSender,
        ICoroutineManager coroutineManager)
    {
        _joinButton   = joinButton;
        _backButton   = backButton;
        _serverButton = serverButton;

        _clientInfo    = clientInfo;
        _serverManager = serverManager;
        _initializer   = connectionInitializer;
        _connectionMenuMessageSender = connectionMenuMessageSender;
        _coroutineManager            = coroutineManager;
        _serverButtonText            = _serverButton.GetComponentInChildren <Text>();
    }
Ejemplo n.º 24
0
    protected override IPerformanceTest InitView()
    {
        if (profiler != null)
        {
            sampler = profiler.Sampler;
        }

        switch (managerType)
        {
        case ManagerType.Unity:
            coroutineManager = new UnityCoroutineManager(this);
            return(new CoroutinePerformanceTest(coroutineManager, new UnityWaitForSecondsFactory(0.5f)));

        case ManagerType.Mine:
            coroutineManager = new CoroutineManager();
            return(new CoroutinePerformanceTest(coroutineManager, new MyWaitForSecondsFactory(0.5f)));

        default:
            throw new ArgumentOutOfRangeException();
        }
    }
Ejemplo n.º 25
0
        public RegistrationConfigurationGetter(IKeychain keychain, AbstractLogger logger, string localStorageDirPath, string guestControllerHostUrl, string guestControllerSpoofedIpAddress, string oneIdClientId, ICoroutineManager coroutineManager, string mixApiHostUrl, string mixClientToken)
        {
            SystemStopwatchFactory    stopwatchFactory          = new SystemStopwatchFactory();
            SystemWwwFactory          wwwFactory                = new SystemWwwFactory();
            WwwCallFactory            wwwCallFactory            = new WwwCallFactory(logger, coroutineManager, stopwatchFactory, wwwFactory);
            JsonWebCallEncryptor      webCallEncryptor          = new JsonWebCallEncryptor();
            FileSystem                fileSystem                = new FileSystem();
            DatabaseDirectoryCreator  directoryCreator          = new DatabaseDirectoryCreator(fileSystem, localStorageDirPath);
            DocumentCollectionFactory documentCollectionFactory = new DocumentCollectionFactory();
            SystemRandom              random = new SystemRandom();
            DatabaseCorruptionHandler databaseCorruptionHandler = new DatabaseCorruptionHandler(logger, fileSystem, localStorageDirPath);
            SystemEpochTime           epochTime                       = new SystemEpochTime();
            Database                     database                     = new Database(keychain.LocalStorageKey, random, epochTime, directoryCreator, documentCollectionFactory, databaseCorruptionHandler);
            MixWebCallQueue              webCallQueue                 = new MixWebCallQueue();
            NoOpSessionRefresher         sessionRefresher             = new NoOpSessionRefresher();
            MixWebCallFactory            webCallFactory               = new MixWebCallFactory(logger, mixApiHostUrl, wwwCallFactory, webCallEncryptor, string.Empty, string.Empty, mixClientToken, webCallQueue, sessionRefresher, epochTime, database);
            AgeBandBuilder               ageBandBuilder               = new AgeBandBuilder(logger, webCallFactory);
            GuestControllerClientFactory guestControllerClientFactory = new GuestControllerClientFactory(wwwCallFactory, guestControllerSpoofedIpAddress, database, guestControllerHostUrl, oneIdClientId, logger);

            registrationConfigurationGetter = new Disney.Mix.SDK.Internal.RegistrationConfigurationGetter(logger, guestControllerClientFactory, ageBandBuilder);
        }
Ejemplo n.º 26
0
 public WebRequestLoader(ICache <object> memoryCacheOverride, ICoroutineManager coroutineManager, string supportsMask = "https",
                         WebRequestSettings webRequestSettings = null, IAntiCacheUrlResolver antiCacheUrlResolver = null) : base(supportsMask, coroutineManager, memoryCacheOverride)
 {
     _webRequestSettings  = webRequestSettings;
     AntiCacheUrlResolver = antiCacheUrlResolver;
 }
    public NonRegisteredTransactorUpgradeSender(IKeychain keychain, AbstractLogger logger, string localStorageDirPath, string guestControllerHostUrl, string guestControllerSpoofedIpAddress, string oneIdClientId, ICoroutineManager coroutineManager)
    {
        SystemStopwatchFactory    stopwatchFactory          = new SystemStopwatchFactory();
        SystemWwwFactory          wwwFactory                = new SystemWwwFactory();
        WwwCallFactory            wwwCallFactory            = new WwwCallFactory(logger, coroutineManager, stopwatchFactory, wwwFactory);
        FileSystem                fileSystem                = new FileSystem();
        DatabaseDirectoryCreator  directoryCreator          = new DatabaseDirectoryCreator(fileSystem, localStorageDirPath);
        DocumentCollectionFactory documentCollectionFactory = new DocumentCollectionFactory();
        SystemRandom              random = new SystemRandom();
        DatabaseCorruptionHandler databaseCorruptionHandler = new DatabaseCorruptionHandler(logger, fileSystem, localStorageDirPath);
        SystemEpochTime           epochTime = new SystemEpochTime();
        Database database = new Database(keychain.LocalStorageKey, random, epochTime, directoryCreator, documentCollectionFactory, databaseCorruptionHandler);
        GuestControllerClient guestControllerClient = new GuestControllerClient(wwwCallFactory, guestControllerSpoofedIpAddress, database, "NoSWID", guestControllerHostUrl, oneIdClientId, logger);

        nrtUpgradeSender = new NrtUpgradeSender(logger, guestControllerClient);
    }
Ejemplo n.º 28
0
 public UnityResourceFromBundleWorker(string uri, Action <UnityResourceFromBundleWorker> onLoadingComplete,
                                      ICoroutineManager coroutineManager) : base(uri, coroutineManager)
 {
     _onLoadingComplete = onLoadingComplete;
 }
 public UnityResourceFromBundleLoaderEditorLocal(ICoroutineManager coroutineManager, string supportMask = "UnityResourceFromLocalFolderBundle") : base(supportMask,
                                                                                                                                                       coroutineManager,
                                                                                                                                                       new ResourceMemoryCache())
 {
 }
Ejemplo n.º 30
0
 protected BaseLoader(string supportsMask, ICoroutineManager coroutineManager)
 {
     SupportsMask      = supportsMask;
     _coroutineManager = coroutineManager;
 }