Kaynağa Gözat

correct prevButton action

Cubees 7 yıl önce
ebeveyn
işleme
97b60174a6
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  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() {