quantum-space-buddies/QSB/PoolSync/PoolManager.cs

25 lines
695 B
C#
Raw Normal View History

using QSB.WorldSync;
using UnityEngine;
namespace QSB.PoolSync
{
2021-03-29 22:37:36 +00:00
internal class PoolManager : WorldObjectManager
{
protected override void RebuildWorldObjects(OWScene scene)
{
foreach (var streaming in Resources.FindObjectsOfTypeAll<NomaiRemoteCameraStreaming>())
{
streaming.gameObject.AddComponent<CustomNomaiRemoteCameraStreaming>();
}
foreach (var camera in Resources.FindObjectsOfTypeAll<NomaiRemoteCamera>())
{
camera.gameObject.AddComponent<CustomNomaiRemoteCamera>();
}
foreach (var platform in Resources.FindObjectsOfTypeAll<NomaiRemoteCameraPlatform>())
{
platform.gameObject.AddComponent<CustomNomaiRemoteCameraPlatform>();
}
}
}
}