public PhysicsService(CameraServices cameraServices) : base() { _cameraServices = cameraServices; _collidedObjects = new Collider2D[COLLIDED_OBJECT_SIZE]; _castBuffer = new RaycastHit2D[64]; _triggeredObjects = new List <Collider2D>(); _raycastHit = new RaycastHit(); }
private void Initialize() { LevelLoadService = new LevelLoadService(); CameraServices = new CameraServices(); TimeService = new UnityTimeService(); PhysicsService = new PhysicsService(CameraServices); SaveData = new PrefsService(); JsonService = new JsonService(); LevelService = new LevelService(); FlyingIconsService = new FlyingIconsService(); }