| | |
| | | this.stats.end(); |
| | | this.queryCrn(); |
| | | this.crnMove(); |
| | | this.staMove() |
| | | } |
| | | this.initScene = function () { |
| | | this.scene = new THREE.Scene(); |
| | |
| | | } |
| | | } |
| | | } |
| | | this.getExistedGoodType=function(state){ |
| | | for (let i=0;i<this.goodTypes.length;i++) { |
| | | let type=this.goodTypes[i]; |
| | | if(type.type===state) { |
| | | return type.object; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | this.crnMove = function (object) { |
| | | for (let crnTask of this.crnTasks) { |
| | | crnTask.move(); |
| | | } |
| | | } |
| | | this.staMove = function (object) { |
| | | // for (let crnTask of this.crnTasks) { |
| | | // crnTask.move(); |
| | | // } |
| | | } |
| | | |
| | | // 功能方法区 |
| | | this.changeStats = function () { |