예제 #1
0
        private void OnNextFrame(float time)
        {
            FCFrameResult result = _modulesRunner.TickAsync(time).Result;

            _frameResultLabel.text = $"{result.Frame} : {result.FrameExecutionTimeInMilliseconds}";
            RefreshModules(result);
        }
예제 #2
0
        private void OnNextFrameButton()
        {
            FCFrameResult result = _modulesRunner.MoveByOneFrameForward().Result;

            _frameResultLabel.text = $"{result.Frame} : {result.FrameExecutionTimeInMilliseconds}";
            RefreshModules(result);
        }
예제 #3
0
 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);
     }
 }