refactoring
This commit is contained in:
@@ -168,8 +168,7 @@ export default {
|
||||
gameEngine.activeObjects.add(io.object);
|
||||
if (this.env != 'GameDesigner'){
|
||||
if (i.data.$go?.type == 'player3d'){
|
||||
let hero = new Hero(io, i.data.$go);
|
||||
hero.init(gameEngine);
|
||||
let hero = new Hero(gameEngine, io, i.data.$go);
|
||||
}else{
|
||||
if (io.source?.animations?.length){
|
||||
gameEngine.playAnimation(gameEngine.scene, io.source.animations[0]);
|
||||
|
||||
Reference in New Issue
Block a user