#include "TimerManager.h"
if (!GEngine) return;
if (!GEngine->GameViewport) return;
UWorld* World = GEngine->GameViewport->GetWorld();
if (!World) return;
World->GetTimerManager().SetTimer(FinishedHandle, this, &UHMMusicNoteManager::Finish, 10.f);
如果在单例中写的话,getworld()是空的