// Update is called once per frame private void Update() { if (!Input.GetKeyDown(KeyCode.Return)) { return; } IntArray(ref data, size, type, maxValue, constValue); if (printArray) { LogUtils.PrintArray(data, scanner.GetType().Name + " In: "); } var sw = Stopwatch.StartNew(); var scan = scanner.Scan(data); sw.Stop(); LogUtils.PrintArray(scan, scanner.GetType().Name + "(" + sw.ElapsedMilliseconds + "ms):"); }