예제 #1
0
    public void ReplaceNewCustomNameComponent1(EntitasRedux.Tests.CustomName newValue)
    {
        var index     = TestComponentsLookup.NewCustomNameComponent1;
        var component = (NewCustomNameComponent1Component)CreateComponent(index, typeof(NewCustomNameComponent1Component));

        component.value = newValue;
        ReplaceComponent(index, component);
    }
    public void AddNewCustomNameComponent2(EntitasRedux.Tests.CustomName newValue)
    {
        var index     = TestComponentsLookup.NewCustomNameComponent2;
        var component = (NewCustomNameComponent2Component)CreateComponent(index, typeof(NewCustomNameComponent2Component));

        component.value = newValue;
        AddComponent(index, component);
    }
    public void AddNewCustomNameComponent2(EntitasRedux.Tests.CustomName newValue)
    {
        var index     = TestComponentsLookup.NewCustomNameComponent2;
        var component = (NewCustomNameComponent2Component)CreateComponent(index, typeof(NewCustomNameComponent2Component));

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