public void SetCanvasData(CanvasData canvasData) { Border.BindData(new[] { new Vector2(-1, -1), new Vector2(1, -1), new Vector2(1, 1), new Vector2(-1, 1) }); DataVolume.BindData(canvasData.DataVolume); PacketCount.BindData(canvasData.PacketCount); for (var k = 0; k < MatchingCounts.Count; k++) { MatchingCounts[k].BindData(canvasData.MatchingCount[k]); } _canvasReady = true; if (_canvasData != null) { _transitionCanvas = canvasData; StartTransition(); } else { _xAxis.Generate(canvasData); _yAxis.GenerateAxis(canvasData.ScaleData.MaxData); _scaleData = canvasData.ScaleData; _canvasData = canvasData; } }