public void Test() { NebulaObject obj = CreateObject(); Update(0.1f, 3, obj); OutComponents(obj); obj.AddComponent <ThirdComponent>(); Update(0.1f, 3, obj); OutComponents(obj); obj.RemoveComponent <ThirdComponent>(); Update(0.1f, 3, obj); OutComponents(obj); obj.AddComponent <FourComponent>(); Update(0.1f, 3, obj); OutComponents(obj); obj.RemoveComponent <ThirdComponent>(); Update(0.1f, 3, obj); OutComponents(obj); }