private void OnNextFrame(float time) { FCFrameResult result = _modulesRunner.TickAsync(time).Result; _frameResultLabel.text = $"{result.Frame} : {result.FrameExecutionTimeInMilliseconds}"; RefreshModules(result); }
private void OnNextFrameButton() { FCFrameResult result = _modulesRunner.MoveByOneFrameForward().Result; _frameResultLabel.text = $"{result.Frame} : {result.FrameExecutionTimeInMilliseconds}"; RefreshModules(result); }
private void RefreshModules(FCFrameResult result) { foreach (FCModuleFrameResult fcModuleFrameResult in result.Modules) { var record = _spawnedModules.FirstOrDefault(m => m.Module.ModuleType == fcModuleFrameResult.ModuleType); record?.Refresh(true, fcModuleFrameResult.ExecutionTimeInMilliseconds, fcModuleFrameResult.EntitiesHandled); } }