woso_javan 3 달 전
부모
커밋
30f3aec6b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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() {