瀏覽代碼

Buttons Gates and Switches working as intended

Ryan Dahlke 2 年之前
父節點
當前提交
4754fe602c
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/Objects/Gate.ts

+ 4 - 3
src/Objects/Gate.ts

@@ -5,14 +5,15 @@ export default class Gate extends Phaser.Physics.Arcade.Image{
 
     constructor(scene: Phaser.Scene, x: number, y: number, texture: string, actives:number) {
         super(scene, x, y, texture);
-        /*
+        
         for(let i = 0; i < actives && i < 3; i++){
             this.actives[i] = false
         }
-        */
+        
         scene.add.existing(this);
     }
 
+    /*
     handleActivate(){
         if(this.actives[0] && this.actives[1] && this.actives[2]){
             this.setVisible(false)
@@ -30,5 +31,5 @@ export default class Gate extends Phaser.Physics.Arcade.Image{
         return;
     }
 
-
+*/
 }