Prechádzať zdrojové kódy

correct prevButton action

Cubees 7 rokov pred
rodič
commit
97b60174a6
1 zmenil súbory, kde vykonal 2 pridanie a 4 odobranie
  1. 2 4
      Playground/js/pbt.js

+ 2 - 4
Playground/js/pbt.js

@@ -162,10 +162,8 @@ var PBT = function() {
             return this.nextButton;
         }
 
-        this.prevClick = function(func) {
-            this.prevButton.onPointerUpObservable.add(function() {
-                func();
-            });
+        this.getPrevButton = function() {
+            return this.prevButton;
         }
 
         this.showPrev = function() {