mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 08:36:14 +00:00
Game ui
This commit is contained in:
@@ -65,7 +65,7 @@ export class PlayerCollisionSystem {
|
||||
|
||||
private resolveXpContact(xpCollider: Collider2D): void {
|
||||
const xp: XP = xpCollider.node.getComponent(XP);
|
||||
this.player.addXp(xp.Value);
|
||||
this.player.Level.addXp(xp.Value);
|
||||
xp.pickup();
|
||||
|
||||
console.log("Collided with xp: " + xp);
|
||||
|
Reference in New Issue
Block a user