| 525 | } |
| 526 | |
| 527 | void UMjSimulateWidget::OnReplayClicked() |
| 528 | { |
| 529 | if (!ManagerRef) |
| 530 | return; |
| 531 | AMjReplayManager* ReplayMgr = Cast<AMjReplayManager>( |
| 532 | UGameplayStatics::GetActorOfClass(GetWorld(), AMjReplayManager::StaticClass())); |
| 533 | if (!ReplayMgr) |
| 534 | return; |
| 535 | |
| 536 | if (ReplayMgr->bIsReplaying) |
| 537 | { |
| 538 | ManagerRef->StopReplay(); |
| 539 | } |
| 540 | else |
| 541 | { |
| 542 | ManagerRef->StartReplay(); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | void UMjSimulateWidget::OnSnapshotClicked() |
| 547 | { |
nothing calls this directly
no test coverage detected