Menginisialisasi objek yang akan digunakan untuk menyimpan nilai indikator
Return value
penyangga baru New
Description
Digunakan dalam konstruktor. Disimpan di properti kelas
Example
// Memulai 3 objek MNKBufferOne, MNKBufferTwo, MNKBufferThree dan menugaskan mereka di properti kelas buffers
this.buffers = {
MNKBufferOne : this.addBuffer(),
MNKBufferTwo : this.addBuffer(),
MNKBufferThree:this.addBuffer(),
};
// Dalam metode onInit или onUpdate kita mendapatkan benda-benda ini dengan cara merusak
const {MNKBufferOne, MNKBufferTwoб MNKBufferThree} = this.buffers;