mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
Update README-RU.md
This commit is contained in:
parent
671063366b
commit
5c5724cdcc
@ -453,8 +453,8 @@ public class SomeDamageSystem : IEcsRun, IEcsInject<EcsDefaultWorld>
|
||||
{
|
||||
foreach (var e in _world.Where(out Aspect a))
|
||||
{
|
||||
// Сюда попадают сущности с компонентами Health, Damage и без IsInvulnerable
|
||||
a.healths.Get(e).points -= a.damages.Get(e).points;
|
||||
// Сюда попадают сущности с компонентами Health, DamageSignal и без IsInvulnerable
|
||||
a.healths.Get(e).points -= a.damageSignals.Get(e).points;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user