TempCup.ts 452 B

1234567891011121314151617181920212223
  1. import { _decorator, Component, Enum, Node } from 'cc';
  2. import { CupHeight } from '../TakeGobletGlobalInstance';
  3. const { ccclass, property } = _decorator;
  4. @ccclass('TempCup')
  5. export class TempCup extends Component {
  6. @property({ type: Enum(CupHeight), displayName: '杯高度' })
  7. cupHeight: CupHeight = CupHeight.One
  8. @property(Node)
  9. waters: Node = null!; //水节点
  10. start() {
  11. }
  12. update(deltaTime: number) {
  13. }
  14. }