protected override bool DoUpdate(DriverUpdateParams param) { progress = Mathf.Clamp01(progress + param.deltaTime / duration); if (null != material) { material.color = Color.Lerp(runningColor.Key, runningColor.Value, progress); } return(1 > progress); }
protected override bool DoUpdate(DriverUpdateParams param) { try { result.readLength += runningTaskParam.stream.Read( runningTaskParam.buffer, runningTaskParam.bufferOffset + result.readLength, Mathf.Min(partLength, runningTaskParam.length - result.readLength)); } catch (IOException e) { result.exception = e; return(false); } return(result.readLength < runningTaskParam.length); }
protected override bool DoUpdate(DriverUpdateParams param) { return(null == result.exception && result.readLength < runningTaskParam.length); }