public void ReplaceStructToGenerate(My.Namespace.StructToGenerate newValue) { var component = CreateComponent <StructToGenerateComponent>(TestComponentsLookup.StructToGenerate); component.value = newValue; ReplaceComponent(TestComponentsLookup.StructToGenerate, component); }
public void ReplaceStructToGenerate(My.Namespace.StructToGenerate newValue) { var index = TestComponentsLookup.StructToGenerate; var component = (StructToGenerateComponent)CreateComponent(index, typeof(StructToGenerateComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void AddStructToGenerate(My.Namespace.StructToGenerate newValue) { var index = TestComponentsLookup.StructToGenerate; var component = CreateComponent <StructToGenerateComponent>(index); component.value = newValue; AddComponent(index, component); }