Game_InitLoad_Flow.ts 889 B

123456789101112131415161718192021222324252627282930
  1. import BasicTreeBehaviorNode from "../../Engine/Basic/BasicTreeBehaviorNode";
  2. import EventManager from "../../Engine/Event/EventManager";
  3. import Tool from "../../Engine/Tool/Tool";
  4. import GameEventName from "../Event/GameEventName";
  5. import InitLoadView from "../View/InitLoadView/InitLoadView";
  6. /**
  7. * 启动控制节点 - 逻辑层
  8. */
  9. export default class Game_InitLoad_Flow extends BasicTreeBehaviorNode {
  10. public _enter (...args: any): void {
  11. EventManager.sendEvent(GameEventName.View.View_DestroyView, null);
  12. EventManager.sendEvent(GameEventName.View.View_ShowView, InitLoadView);
  13. }
  14. protected _leave (): void {
  15. Tool.log("正式进入游戏");
  16. // EventManager.sendEvent(GameEventName.View.View_DestroyView, InitLoadView);
  17. }
  18. protected _enterFail (): void {
  19. }
  20. protected _enterAgain (): void {
  21. }
  22. }