Example #1
0
    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);
    }
Example #3
0
    public void AddStructToGenerate(My.Namespace.StructToGenerate newValue)
    {
        var index     = TestComponentsLookup.StructToGenerate;
        var component = CreateComponent <StructToGenerateComponent>(index);

        component.value = newValue;
        AddComponent(index, component);
    }