public void ReplaceClassWithEntitIndexAttribute(ClassWithEntitIndexAttribute newValue) { var index = TestComponentsLookup.ClassWithEntitIndexAttribute; var component = (ClassWithEntitIndexAttributeComponent)CreateComponent(index, typeof(ClassWithEntitIndexAttributeComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void AddClassWithEntitIndexAttribute(ClassWithEntitIndexAttribute newValue) { var index = TestComponentsLookup.ClassWithEntitIndexAttribute; var component = CreateComponent <ClassWithEntitIndexAttributeComponent>(index); component.value = newValue; AddComponent(index, component); }