[SetUp] public void Setup() { _entities = new List <Entity> { new Entity(new IEntityComponent[] { new TestComponentA() }), new Entity(new IEntityComponent[] { new TestComponentB() }), new Entity(new IEntityComponent[] { new TestComponentC() }), new Entity(new IEntityComponent[] { new TestComponentD() }), new Entity(new IEntityComponent[] { new TestComponentA(), new TestComponentB(), new TestComponentC(), new TestComponentD() }), new Entity(new IEntityComponent[] { new TestComponentA(), new TestComponentB() }), new Entity(new IEntityComponent[] { new TestComponentC(), new TestComponentD() }), new Entity(new IEntityComponent[] { new TestComponentA(), new TestComponentD() }), new Entity(new IEntityComponent[] { new TestComponentB(), new TestComponentC() }) }; _systemMatcher = new SystemMatcher <IEntitySystem>(new IEntitySystem[] { new TestSystemA(), new TestSystemB(), new TestSystemC(), new TestSystemD(), new TestSystemAandB(), new TestSystemCandD(), new TestSystemAandD(), new TestSystemBandC() }); }
protected void Start() { gameObject.SetEntity(entity); _systemMatcher = new SystemMatcher <EntitySystem>(entitySystems); }