File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ public class HealthBarSystem : UpdateSystem {
1919 private SystemStateProcessor <HealthBarSystemStateComponent > heroProcessor ;
2020
2121 public override void OnAwake () {
22- heroProcessor = World .Filter .With <HeroComponent >().With <HeroDamagedMarker >().Without <HeroDeadMarker >()
22+ heroProcessor = World .Filter
23+ .With <HeroComponent >()
24+ .With <HeroDamagedMarker >()
25+ .Without <HeroDeadMarker >()
2326 .ToSystemStateProcessor (CreateHealthBarForHero , RemoveHealthBarForHero );
2427 }
2528
@@ -48,12 +51,12 @@ public class HealthBarSystem : UpdateSystem {
4851}
4952
5053public class DestroySystem : UpdateSystem {
51- private Filter _toDestroyFilter ;
54+ private Filter toDestroyFilter ;
5255
5356 public override void OnAwake () { }
5457
5558 public override void OnUpdate (float deltaTime ) {
56- foreach (var entity in _toDestroyFilter ) {
59+ foreach (var entity in toDestroyFilter ) {
5760 // MigrateSystemStateComponents must be called before each RemoveEntity
5861 World .MigrateSystemStateComponents (entity );
5962 World .RemoveEntity (entity );
You can’t perform that action at this time.
0 commit comments