ageent preview & select in KF editor
This commit is contained in:
@@ -3,7 +3,6 @@ class DashboardsController extends WindozController {
|
||||
constructor(params) {
|
||||
super(params)
|
||||
this.arenaConfig = app.Assets.Store.json.arenaConfig
|
||||
this.agentDefs = app.Assets.Store.json.agentDefs
|
||||
this.eventsMapping = app.Assets.Store.json.eventsMapping
|
||||
}
|
||||
|
||||
@@ -28,8 +27,8 @@ class DashboardsController extends WindozController {
|
||||
})
|
||||
|
||||
this.agentDefs = await models.agents.getSprites('Basic 3D')
|
||||
const a1 = ttb.agentFromJSON('agent42', this.agentDefs.nocode1)
|
||||
const a2 = ttb.agentFromJSON('agent42', this.agentDefs.nocode2)
|
||||
const a1 = ttb.createAgent('agent42', this.agentDefs.nocode1)
|
||||
const a2 = ttb.createAgent('agent42', this.agentDefs.nocode2)
|
||||
ttb.scene.add(a1)
|
||||
ttb.scene.add(a2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user