// Update is called once per frame void FixedUpdate() { if (!_moving && _started) { _currentCase.GetPropertyBlock(_prop); List <BigInteger> outputs = _computer.Execute((_prop.GetColor("_Color") == Color.white ? 1 : 0)); _started = _computer.Running && !_computer.Error; if (_computer.Error) { Debug.LogError(_computer.eMessage); return; } Paint((outputs.Count > 0 ? (int)outputs[0] : -1)); Turn((outputs.Count > 1 ? (int)outputs[1] : -1)); _moving = true; } if (_moving) { Move(); } }