public void AddInterfaceToGenerate(My.Namespace.InterfaceToGenerate newValue) { var component = CreateComponent <InterfaceToGenerateComponent>(TestComponentsLookup.InterfaceToGenerate); component.value = newValue; AddComponent(TestComponentsLookup.InterfaceToGenerate, component); }
public void ReplaceInterfaceToGenerate(My.Namespace.InterfaceToGenerate newValue) { var index = TestComponentsLookup.InterfaceToGenerate; var component = CreateComponent <InterfaceToGenerateComponent>(index); component.value = newValue; ReplaceComponent(index, component); }
public void AddInterfaceToGenerate(My.Namespace.InterfaceToGenerate newValue) { var index = TestComponentsLookup.InterfaceToGenerate; var component = (InterfaceToGenerateComponent)CreateComponent(index, typeof(InterfaceToGenerateComponent)); component.value = newValue; AddComponent(index, component); }