includes to indexof
This commit is contained in:
@@ -565,7 +565,8 @@ export class Stage extends Laya.Script {
|
||||
for (let i = 0; i < this.blocks.length; i++) {
|
||||
const block = this.blocks[i]
|
||||
const note_numbers = block.getData().get_notes()
|
||||
if (note_numbers.includes(obj.getData().get_show()))
|
||||
const find = note_numbers.indexOf(obj.getData().get_show())
|
||||
if (find >= 0)
|
||||
list.push(block)
|
||||
}
|
||||
return list
|
||||
|
||||
Reference in New Issue
Block a user