public void ReplaceClassWithEntitIndexAttribute(EntitasRedux.Tests.ClassWithEntitIndexAttribute newValue)
    {
        var index     = TestComponentsLookup.ClassWithEntitIndexAttribute;
        var component = (ClassWithEntitIndexAttributeComponent)CreateComponent(index, typeof(ClassWithEntitIndexAttributeComponent));

        component.value = newValue;
        ReplaceComponent(index, component);
    }
コード例 #2
0
    public void AddClassWithEntitIndexAttribute(EntitasRedux.Tests.ClassWithEntitIndexAttribute newValue)
    {
        var index     = TestComponentsLookup.ClassWithEntitIndexAttribute;
        var component = (ClassWithEntitIndexAttributeComponent)CreateComponent(index, typeof(ClassWithEntitIndexAttributeComponent));

                #if !ENTITAS_REDUX_NO_IMPL
        component.value = newValue;
                #endif
        AddComponent(index, component);
    }