| 123456789101112131415161718192021222324252627282930313233 |
- import { _decorator, Component, Node } from 'cc';
- import { FMSRegister, IFMS } from '../../core/util_class/FMS';
- import { gui } from '../../core/ui/ui';
- import { UI_Main } from '../ui/main/UI_Main';
- import { UI_Hall } from '../ui/UI_Hall/UI_Hall';
- const { ccclass, property } = _decorator;
- export enum FMSType {
- Main = "main",
- Hall = "Hall"
- }
- @FMSRegister(FMSType.Main)
- export class FMSMain implements IFMS {
- type: string;
- onExit(): void {
- gui.close(UI_Main);
- }
- onEntry(): void {
- gui.show(UI_Main);
- }
- }
- @FMSRegister(FMSType.Hall)
- export class FMSHall implements IFMS {
- type: string;
- onExit(): void {
- gui.close(UI_Hall);
- }
- onEntry(): void {
- gui.show(UI_Hall);
- }
- }
|