this.color = cc.color(parseInt(Math.random()*255),parseInt(Math.random()*255),parseInt(Math.random()*255),255)
var EnemyData = {
enemy_1:{
pic:"res/plane.png",
},
enemy_2:{
pic:"res/test_plane.jpg",
},
}
var EnemyData = {
enemy_1:{
pic:"res/plane.png",
},
enemy_2:{
pic:"res/test_plane.jpg",
},
}
this.enemyData = EnemyData["enemy_"+type]
this.fireTargetCount = 1+Math.random()*(GameConfig.enemy_fire_speed - 1) 重置一个随机值