feat: Integrate PNGs with canvas drawing for detailed nuke designs

This commit is contained in:
Restart2008
2025-12-07 21:37:45 -08:00
parent 6677d38315
commit b9979c6b81
+3 -1
View File
@@ -81,7 +81,9 @@ export class UnitLayer implements Layer {
this.eventBus.on(MouseUpEvent, (e) => this.onMouseUp(e));
this.eventBus.on(TouchEvent, (e) => this.onTouch(e));
this.eventBus.on(UnitSelectionEvent, (e) => this.onUnitSelectionChange(e));
this.initializeAssetsAndRedraw(); // Call the async method without awaiting
this.initializeAssetsAndRedraw().catch((error) =>
console.error("Error in async initialization:", error),
); // Call the async method without awaiting
}
/**