// Use this for initialization void Start() { if (Application.isEditor) { provider = new FakeCompassProvider(); } else { provider = new CompassRotationProvider(); } }
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; }
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); }
private void Start() { rotationProvider = rotationProviderObj.GetComponent <IRotationProvider>(); stayCollisions = new HashSet <Collision>(); }