|
@@ -69,18 +69,22 @@ namespace RemoteTools
|
|
|
|
|
|
RemoteToolsSystemComponent::RemoteToolsSystemComponent()
|
|
RemoteToolsSystemComponent::RemoteToolsSystemComponent()
|
|
{
|
|
{
|
|
|
|
+#if !defined(_RELEASE)
|
|
if (AzFramework::RemoteToolsInterface::Get() == nullptr)
|
|
if (AzFramework::RemoteToolsInterface::Get() == nullptr)
|
|
{
|
|
{
|
|
AzFramework::RemoteToolsInterface::Register(this);
|
|
AzFramework::RemoteToolsInterface::Register(this);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
RemoteToolsSystemComponent::~RemoteToolsSystemComponent()
|
|
RemoteToolsSystemComponent::~RemoteToolsSystemComponent()
|
|
{
|
|
{
|
|
|
|
+#if !defined(_RELEASE)
|
|
if (AzFramework::RemoteToolsInterface::Get() == this)
|
|
if (AzFramework::RemoteToolsInterface::Get() == this)
|
|
{
|
|
{
|
|
AzFramework::RemoteToolsInterface::Unregister(this);
|
|
AzFramework::RemoteToolsInterface::Unregister(this);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
void RemoteToolsSystemComponent::Init()
|
|
void RemoteToolsSystemComponent::Init()
|