scrollPannel.insertQuestion("Where is Mandy and Carl’s backyard?")
lettext="Where is Mandy and Carl’s backyard?Where is Mandy and Carl’s backyard?Where is Mandy and Carl’s backyard?"
lettextArray=this.stringToArray(text,56)
letlastIndex=textArray.length
textArray.forEach((item,index)=>{
console.log(item.id)
if(index==0){
setTimeout(()=>{
scrollPannel.insertQuestion(item,true)
if(index==lastIndex-1){
this.g_enableMapDown=true;
}
},0);
}else{
setTimeout(()=>{
scrollPannel.insertQuestion(item,false);
if(index==lastIndex-1){
this.g_enableMapDown=true;
}
},900*index);
}
})
})
this.subscribeMapDownEvent(btnAnswer.id,()=>{
scrollPannel.insertAnswer("It is behind there house.")
lettext="It is behind there house.It is behind there house.It is behind there house.It is behind there house.It is behind there house.It is behind there house.It is behind there house."