My Solution was a Singleton, accessed through a static method
UWatcher * UWatcher::GetInstance()
{
static UWatcher* i = 0;
if (!i) {
i = NewObject<UWatcher>();
i->AddToRoot();
}
return i;
}
My Solution was a Singleton, accessed through a static method
UWatcher * UWatcher::GetInstance()
{
static UWatcher* i = 0;
if (!i) {
i = NewObject<UWatcher>();
i->AddToRoot();
}
return i;
}