Commit 8c276589 authored by 张世斌's avatar 张世斌

1.修复bug

parent f217d6aa
{
"ver": "2.0.1",
"uuid": "ab64f072-6b37-46d7-9e41-2d35a3e7cfdf",
"downloadMode": 0,
"duration": 9.691429,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "318eb94f-8eee-485f-8fcd-1c15e2cc98ed",
"downloadMode": 0,
"duration": 3.096,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "fb845b9d-9241-494f-9d10-04f26d503853",
"downloadMode": 0,
"duration": 13.061224,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "7ba34e27-70d4-40ac-a0cc-b3b9c4c89768",
"downloadMode": 0,
"duration": 0.972,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "08218649-1664-4be5-b20c-6d2069c22b48",
"downloadMode": 0,
"duration": 2.196,
"subMetas": {}
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ export default class MenuController extends Controller{
private catAni:dragonBones.ArmatureDisplay
private stageIdx:number=0
private colorCur:string //当前选择的色彩
private answers:string[]
private answers:number[]
private camera:cc.Camera
private isCanTap:boolean=true;
......@@ -63,20 +63,20 @@ export default class MenuController extends Controller{
return;
}
this.answers[i]=i.toString();
this.answers[i]=i;
let color=new cc.Color();
color.fromHEX(this.colorCur);
colorBlocks[i].color=color;
// cc.Color.fromHEX(colorBlocks[i].color,+"#"+this.colorCur);
this.onRight();
// let flag=0;
// for(let i=0;i<this.answers.length;i++){
// if(this.answers[i]==answers[i]){
// flag++;
// }
// }
(this.answers.length>=colorBlocks.length)&&this.finish();
let flag=0;
for(let i=0;i<this.answers.length;i++){
if(this.answers[i]==i){
flag++;
}
}
(flag>=colorBlocks.length)&&this.finish();
// // this.onClickBlock(i,answers);
// let result=answers.findIndex((item)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment