future há 1 ano atrás
pai
commit
b6b4160a14
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      assets/script/edit/event/event_switch_scene_event.ts

+ 4 - 0
assets/script/edit/event/event_switch_scene_event.ts

@@ -59,6 +59,10 @@ export class event_switch_scene_event extends Component {
     }
 
     change(direction = config.switch_scene_page_direction.unknown) {
+        if(this.m_data.direction == direction) {
+            this.m_data.direction = config.switch_scene_page_direction.unknown
+            return
+        }
         this.m_data.direction = direction
         this.updateDirectionNodeStatus()
     }