public virtual void GetScreen(int screenId, UserFilter filter, System.Action<ScreenResult> onResult) {
			
			var result = new ScreenResult();
			result.count = Random.Range(100, 200);
			result.uniqueCount = Random.Range(0, 100);
			onResult(result);
			
		}
Esempio n. 2
0
        public virtual void GetHeatmapData(int screenId, int screenWidth, int screenHeight, UserFilter filter, System.Action <HeatmapResult> onResult)
        {
            var result = new HeatmapResult();

            result.points = new HeatmapResult.Point[Random.Range(200, 500)];
            for (int i = 0; i < result.points.Length; ++i)
            {
                result.points[i]        = new HeatmapResult.Point();
                result.points[i].tag    = 5;
                result.points[i].x      = Random.Range(0f, 1f);
                result.points[i].y      = Random.Range(0f, 1f);
                result.points[i].weight = Random.Range(1, 100);
            }

            onResult(result);
        }
Esempio n. 3
0
        public virtual void GetScreenTransition(int index, int screenId, int toScreenId, UserFilter filter, System.Action <ScreenResult> onResult)
        {
            var result = new ScreenResult();

            result.count       = Random.Range(100, 200);
            result.uniqueCount = Random.Range(0, 100);
            onResult(result);
        }
		public virtual void GetHeatmapData(int screenId, int screenWidth, int screenHeight, UserFilter filter, System.Action<HeatmapResult> onResult) {
			
			var result = new HeatmapResult();
			result.points = new HeatmapResult.Point[Random.Range(200, 500)];
			for (int i = 0; i < result.points.Length; ++i) {

				result.points[i] = new HeatmapResult.Point();
				result.points[i].tag = 5;
				result.points[i].x = Random.Range(0f, 1f);
				result.points[i].y = Random.Range(0f, 1f);
				result.points[i].weight = Random.Range(1, 100);

			}

			onResult(result);

		}