refactoring
This commit is contained in:
@@ -16,6 +16,11 @@ class Clickable {
|
||||
delete object._clickable;
|
||||
};
|
||||
|
||||
this.removeAll = function(){
|
||||
objects.forEach(o=>delete o._clickable)
|
||||
objects.splice(0, objects.length);
|
||||
}
|
||||
|
||||
this.update = function (mouse, camera, event) {
|
||||
raycaster.setFromCamera(mouse, camera);
|
||||
let forExecute = [];
|
||||
|
||||
Reference in New Issue
Block a user