feat: battle system, state manager enhancements, engine and demo updates
This commit is contained in:
@@ -51,9 +51,9 @@ export class Engine {
|
||||
this.audioSystem = new AudioSystem()
|
||||
this.achievementSystem = new AchievementSystem()
|
||||
|
||||
this.stateManager.onAfterApply = (vars) => {
|
||||
this.stateManager.onAfterApply.add((vars) => {
|
||||
this.achievementSystem.check(vars)
|
||||
}
|
||||
})
|
||||
|
||||
this.videoManager.onTimeUpdate(this.onTimeUpdate)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user