HTML5场景跳转代码怎么写啊,在子场景里写的代码不能返回主场景
lansechenji吧
全部回复
仅看楼主
level 2
剪辑小能手2019
楼主
2020年08月08日 09点08分
1
level 13
lansechenji
exportRoot是主场景。
示例的话你写
this.addEventListener("click", function(event) { exportRoot.play();})
2020年08月14日 23点08分
2
剪辑小能手2019
大佬,点了没反应啊
2020年08月21日 02点08分
剪辑小能手2019
this.addEventListener("click", function(event) { exportRoot.play(0);})
2020年08月21日 02点08分
lansechenji
@剪辑小能手2019
this后边要加你点击的实例名.play()是个方法不能在里边加序号. this.实例名.addEventListener("click", function(event) { exportRoot.play();})
2021年03月09日 11点03分
1