Move world on unordered_map and object_ptr
This commit is contained in:
@@ -21,6 +21,13 @@ void TestWorld::Tick(double delta_time)
|
||||
if (time >= 10.0)
|
||||
{
|
||||
Message("TestWorld: Time out");
|
||||
std::vector<UType::object_ptr<Mesh>> meshes = GetActorsByClass<Mesh>();
|
||||
if (!meshes.empty())
|
||||
{
|
||||
DestroyActor(static_cast<UType::object_ptr<Actor>>(meshes[0]));
|
||||
time = 7.0;
|
||||
return;
|
||||
}
|
||||
GetGameInstance().quit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user