public void RemoveScriptComponentFromAllTickLists(ScriptComponentBehaviour sc)
 {
     if (this._scriptComponentsToAddToTick.IndexOf(sc) >= 0)
     {
         this._scriptComponentsToAddToTick.Remove(sc);
     }
     else if (this._scriptComponentsToAddToTickOccasionally.IndexOf(sc) >= 0)
     {
         this._scriptComponentsToAddToTickOccasionally.Remove(sc);
     }
     else if (this._scriptComponentsToRemoveFromTick.IndexOf(sc) == -1 && this._scriptComponentsToTick.IndexOf(sc) != -1)
     {
         this._scriptComponentsToRemoveFromTick.Add(sc);
     }
     else if (this._scriptComponentsToRemoveFromTickOccasionally.IndexOf(sc) == -1 && this._scriptComponentsToTickOccasionally.IndexOf(sc) != -1)
     {
         this._scriptComponentsToRemoveFromTickOccasionally.Add(sc);
     }
     if (this._scriptComponentsToAddToTickForEditor.IndexOf(sc) != -1)
     {
         this._scriptComponentsToAddToTickForEditor.Remove(sc);
     }
     else
     {
         if (this._scriptComponentsToRemoveFromTickForEditor.IndexOf(sc) != -1)
         {
             return;
         }
         this._scriptComponentsToRemoveFromTickForEditor.Add(sc);
     }
 }
 public void AddScriptComponentToTickList(ScriptComponentBehaviour sc)
 {
     if (this._scriptComponentsToRemoveFromTick.IndexOf(sc) != -1)
     {
         this._scriptComponentsToRemoveFromTick.Remove(sc);
     }
     else
     {
         this._scriptComponentsToAddToTick.Add(sc);
     }
 }
 public void SetScriptComponentHolder(ScriptComponentBehaviour sc)
 {
     sc.SetOwnerManagedScriptHolder(this);
     if (this._scriptComponentsToRemoveFromTickForEditor.IndexOf(sc) != -1)
     {
         this._scriptComponentsToRemoveFromTickForEditor.Remove(sc);
     }
     else
     {
         this._scriptComponentsToAddToTickForEditor.Add(sc);
     }
 }
 public void RemoveScriptComponentFromTickList(ScriptComponentBehaviour sc)
 {
     if (this._scriptComponentsToAddToTick.IndexOf(sc) >= 0)
     {
         this._scriptComponentsToAddToTick.Remove(sc);
     }
     else
     {
         if (this._scriptComponentsToRemoveFromTick.IndexOf(sc) != -1 || this._scriptComponentsToTick.IndexOf(sc) == -1)
         {
             return;
         }
         this._scriptComponentsToRemoveFromTick.Add(sc);
     }
 }