人生啊人生 1 săptămână în urmă
părinte
comite
e779dbe709

+ 52 - 0
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAdnQvCarEventStep.js

@@ -72,6 +72,58 @@ export class QingXiCheAdnQvCarEventStep {
 
     }
 
+
+    /**
+     * 控制水流粒子 水枪
+     * open         true - 开启, false - 关闭
+     */
+    waterShuiQiangEvent = (open) => {
+
+        let thisClass = this;
+        let objThreeWorldEventMain = this.objThreeWorldEventMain;
+
+        let objIframeEdit = objThreeWorldEventMain.objIframeEdit;
+        let objIframe = objThreeWorldEventMain.objIframe;
+        let objScene = objThreeWorldEventMain.objScene;
+        let BABYLON = objThreeWorldEventMain.BABYLON;
+        let ChengGuangYuanJing = objIframe.ChengGuangYuanJing;
+        
+        let ParticleSystemAuto = ChengGuangYuanJing.ParticleSystemAuto.find();
+        let list = ParticleSystemAuto.list;
+        
+        for (let i = 0; i < list.length; i++) {
+            let objList = list[i];
+
+            // 控制指定的具体的粒子,并不是所有的粒子的会被操作
+            // if (objList.name == '水管水流' || objList.name == '水汽') {
+            // if (objList.name == '水泥管粒子') {
+            // if (objList.name == '水泥管粒子' || objList.name == '水汽') {
+            // if (objList.name == '管道喷水' || objList.name == '水汽') {
+            if (objList.name == '水枪' || objList.name == '水枪') {
+                
+                
+                // 获取粒子对象
+                let objParticle = ChengGuangYuanJing.ParticleSystemAuto.find().objParticleSystemCreateOrUpdate(objList.code);
+                // // 没有停止
+                // if (objParticle.isStopping() == false) {
+                    
+                // }
+
+                if (open == true) {
+                    objParticle.start();
+                } else {
+                    objParticle.stop();
+                }
+
+            }
+
+        }
+        
+        return this;
+
+    }
+
+
     /**
      * 控制 水管流水逻辑
      * open         true - 开启, false - 关闭

+ 2 - 0
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEvent.js

@@ -618,6 +618,7 @@ export class QingXiCheAndQvCarEvent {
         QingXiCheAndQvComHighlightLayer.find().objJsonDelAll();
         
         QingXiCheAdnQvCarEventStep.find().waterEvent(false);
+        QingXiCheAdnQvCarEventStep.find().waterShuiQiangEvent(false);
         QingXiCheAdnQvCarEventStep.find().meshVisibility("all", false);
         QingXiCheAdnQvCarEventStep.find().animationAllTypeUpdate('stopAll');
 
@@ -648,6 +649,7 @@ export class QingXiCheAndQvCarEvent {
 
         // 关闭清洗水流
         QingXiCheAdnQvCarEventStep.find().waterEvent(false);
+        QingXiCheAdnQvCarEventStep.find().waterShuiQiangEvent(false);
 
         objIframeEdit.cameraVisualAngleGetListNameGpsTo("清洗车-喷枪");
         

+ 2 - 0
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEventClick.js

@@ -1840,6 +1840,8 @@ export class QingXiCheAndQvCarEventClick {
                     // 控制延迟逻辑
                     ComVal.find().fpsEventAdd("type_click_" + thisTime, {}, 1500, function(fpsEventAddRet) {
                         ComVal.find().fpsEventDel(fpsEventAddRet.code);
+
+                        QingXiCheAdnQvCarEventStep.find().waterShuiQiangEvent(true);
                         
                         QingXiCheAndQvCarEvent.find().eventEnd = 2;
                         QingXiCheAndQvCarEvent.find().tipsBtnsUpOpenEventCallbackMain(false);