AppRoot loading

This commit is contained in:
Martin
2023-01-02 11:14:44 +01:00
parent 6961e48c15
commit d32340471b
4 changed files with 157 additions and 36 deletions

View File

@@ -60,6 +60,8 @@ export class PlayerCollisionSystem {
}
private resolveContact(otherCollider: Collider2D): void {
if (!this.player.Health.IsAlive) return;
if (this.groupToResolver.has(otherCollider.group)) {
this.groupToResolver.get(otherCollider.group)(otherCollider);
} else {