public void Add(QBehavior script) { Objects.Add(script.Parent); if (script is IQLoad l) { LoadObjects.Add(l); } if (script is IQStart s) { StartObjects.Add(s); } if (script is IQFixedUpdate u) { FixedUpdateObjects.Add(u); } if (script is IQUpdate up) { UpdateObjects.Add(up); } if (script is IQLateUpdate late) { LateUpdateObjects.Add(late); } if (script is IQSprite ds) { SpriteObjects.Add(ds); } if (script is IQGui dg) { GuiObjects.Add(dg); } if (script is IQDestroy des) { DestroyObjects.Add(des); } if (script is IQUnload un) { UnloadObjects.Add(un); } }