示例#1
0
 public void AddReact <TEntity>(Entitas.IMatcher <TEntity> matcher, System.Func <TEntity, bool> filter, System.Action <System.Collections.Generic.List <TEntity> > execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(Entitas.CollectorContextExtension.CreateCollector(GetContext <TEntity>(), matcher), filter, execute);
 }
示例#2
0
 public void AddReactEach <TEntity>(Entitas.IMatcher <TEntity> matcher, System.Func <TEntity, bool> filter, System.Action <TEntity> execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(matcher, filter, entities => entities.ForEach(execute));
 }
示例#3
0
 public void AddReact <TEntity>(Entitas.IMatcher <TEntity> matcher, bool autoFilter, System.Action <System.Collections.Generic.List <TEntity> > execute) where TEntity : class, Entitas.IEntity
 {
     AddReact(matcher, e => !autoFilter || matcher.Matches(e), execute);
 }