JohnCorby 96c8bb6d1d Revert "revert GetUnityObjects thingy"
This reverts commit 53093ddd66b3522be2eefac10cb3c9da341ee43a.
2021-11-14 03:55:11 -08:00

26 lines
672 B
C#

using QSB.WorldSync;
namespace QSB.PoolSync
{
internal class PoolManager : WorldObjectManager
{
protected override void RebuildWorldObjects(OWScene scene)
{
foreach (var streaming in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraStreaming>())
{
streaming.gameObject.AddComponent<CustomNomaiRemoteCameraStreaming>();
}
foreach (var camera in QSBWorldSync.GetUnityObjects<NomaiRemoteCamera>())
{
camera.gameObject.AddComponent<CustomNomaiRemoteCamera>();
}
foreach (var platform in QSBWorldSync.GetUnityObjects<NomaiRemoteCameraPlatform>())
{
platform.gameObject.AddComponent<CustomNomaiRemoteCameraPlatform>();
}
}
}
}