コード例 #1
0
    public void ReplaceStructToGenerate(My.Namespace.StructToGenerate newValue)
    {
        var component = CreateComponent <StructToGenerateComponent>(TestComponentsLookup.StructToGenerate);

        component.value = newValue;
        ReplaceComponent(TestComponentsLookup.StructToGenerate, component);
    }
コード例 #2
0
    public void ReplaceStructToGenerate(My.Namespace.StructToGenerate newValue)
    {
        var index     = TestComponentsLookup.StructToGenerate;
        var component = (StructToGenerateComponent)CreateComponent(index, typeof(StructToGenerateComponent));

        component.value = newValue;
        ReplaceComponent(index, component);
    }
コード例 #3
0
    public void AddStructToGenerate(My.Namespace.StructToGenerate newValue)
    {
        var index     = TestComponentsLookup.StructToGenerate;
        var component = CreateComponent <StructToGenerateComponent>(index);

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