Layout_Main.ts 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { _decorator, Button, Component, find, Label, Node } from 'cc';
  2. import { Container_Manager } from '../../game/Container_Manager';
  3. const { ccclass, property } = _decorator;
  4. @ccclass('Layout_Main')
  5. export class Layout_Main extends Component {
  6. @property(Button)
  7. Pause_Btn: Button = null;
  8. @property(Button)
  9. Rules_Btn: Button = null;
  10. @property(Label)
  11. Level: Label = null;
  12. @property(Label)
  13. Remain_Cube_Des: Label = null;
  14. @property(Label)
  15. Count_Down_Des: Label = null;
  16. @property(Button)
  17. Eliminate_Btn: Button = null;
  18. @property(Button)
  19. Shuffle_Btn: Button = null;
  20. @property(Button)
  21. Empty_Btn: Button = null;
  22. @property(Node)
  23. Hand:Node= null;
  24. time:number;
  25. Container:Container_Manager;
  26. protected start(): void {
  27. this.Container = find('Container').getComponent(Container_Manager);
  28. }
  29. }