Game_Hall_Flow.ts 703 B

1234567891011121314151617181920212223242526
  1. import BasicTreeBehaviorNode from "../../Engine/Basic/BasicTreeBehaviorNode";
  2. import EventManager from "../../Engine/Event/EventManager";
  3. import GameEventName from "../Event/GameEventName";
  4. import HallView from "../View/HallView/HallView";
  5. /**
  6. * 大厅控制节点 - 逻辑层
  7. */
  8. export default class Game_Hall_Flow extends BasicTreeBehaviorNode {
  9. public _enter (...args: any): void {
  10. EventManager.sendEvent(GameEventName.View.View_ShowView, HallView);
  11. }
  12. protected _leave (): void {
  13. EventManager.sendEvent(GameEventName.View.View_DestroyView, HallView);
  14. }
  15. protected _enterFail (): void {
  16. }
  17. protected _enterAgain (): void {
  18. }
  19. }