woso_javan hace 3 meses
padre
commit
30f3aec6b6
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      assets/module_take_goblet/Script/Component/OriginCup.ts

+ 2 - 2
assets/module_take_goblet/Script/Component/OriginCup.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, Enum, Node, tween, Vec3 } from 'cc';
+import { _decorator, CCInteger, Component, Enum, Node, tween, Vec3 } from 'cc';
 import { CupHeight } from '../TakeGobletGlobalInstance';
 import { LevelAction } from '../LevelAction';
 import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
@@ -15,7 +15,7 @@ export class OriginCup extends Component {
     @property(Node)
     waters: Node = null!;  //水节点
 
-    @property({ type: Number, tooltip: "水层数量" })
+    @property({ type: CCInteger, tooltip: "水层数量" })
     waterLayers: number = 5; // 改为可配置项
 
     start() {