Пример #1
0
 // Use this for initialization
 void Start()
 {
     if (Application.isEditor)
     {
         provider = new FakeCompassProvider();
     }
     else
     {
         provider = new CompassRotationProvider();
     }
 }
Пример #2
0
 public MainPresenter(
     ICacheService <Bitmap> cache,
     INonBlockDialogService dialog,
     IAwaitablePipeline pipeline,
     IAsyncOperationLocker operation,
     IScalingProvider scale,
     IRotationProvider rotation)
 {
     _cache     = cache;
     _dialog    = dialog;
     _operation = operation;
     _scale     = scale;
     _rotation  = rotation;
     _pipeline  = pipeline;
 }
Пример #3
0
        public MainPresenterWrapper(
            ICacheService <Bitmap> cache,
            INonBlockDialogService dialog,
            IAwaitablePipeline pipeline,
            IAsyncOperationLocker operation,
            IScalingProvider zoom,
            IRotationProvider rotation)
        {
            Cache     = cache;
            Dialog    = dialog;
            Pipeline  = pipeline;
            Operation = operation;
            Zoom      = zoom;

            _presenter = new MainPresenter(cache, dialog, pipeline, operation, zoom, rotation);
        }
Пример #4
0
 private void Start()
 {
     rotationProvider = rotationProviderObj.GetComponent <IRotationProvider>();
     stayCollisions   = new HashSet <Collision>();
 }