示例#1
0
 public void Unregister(Streaming.HLODControllerBase controller)
 {
     if (m_activeControllers != null)
     {
         m_activeControllers.Remove(controller);
     }
 }
示例#2
0
 public void Register(Streaming.HLODControllerBase controller)
 {
     if (m_activeControllers == null)
     {
         m_activeControllers = new List <Streaming.HLODControllerBase>();
         if (IsSRP)
         {
             RenderPipelineManager.beginCameraRendering += OnPreCull;
         }
         else
         {
             Camera.onPreCull += OnPreCull;
         }
     }
     m_activeControllers.Add(controller);
 }