瀏覽代碼

correct prevButton action

Cubees 7 年之前
父節點
當前提交
97b60174a6
共有 1 個文件被更改,包括 2 次插入4 次删除
  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() {