Пример #1
0
 protected virtual void UpdateManagerState(bool needsUpdate)
 {
     if (needsUpdate)
     {
         if (!inScene)
         {
             Application.GetRenderManager().AddRenderer(this);
             inScene   = true;
             hackDirty = true;
         }
     }
     else
     {
         if (inScene)
         {
             Application.GetRenderManager().RemoveRenderer(this);
             inScene   = false;
             hackDirty = true;
         }
     }
 }
Пример #2
0
 internal override void RemoveFromManager()
 {
     Application.GetRenderManager().RemoveLight(this);
 }
Пример #3
0
 internal override void AddToManager()
 {
     Application.GetRenderManager().AddLight(this);
 }