mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 03:52:44 +00:00
feat: Integrate PNGs with canvas drawing for detailed nuke designs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user