Game_Gameing_Flow.ts 817 B

12345678910111213141516171819202122232425262728
  1. import BasicTreeBehaviorNode from "../../Engine/Basic/BasicTreeBehaviorNode";
  2. import EventManager from "../../Engine/Event/EventManager";
  3. import GameEventName from "../Event/GameEventName";
  4. import GameManager from "../Game/GameManager";
  5. import GameView from "../View/GameView/GameView";
  6. /**
  7. * 游戏中控制节点 - 逻辑层
  8. */
  9. export default class Game_Gameing_Flow extends BasicTreeBehaviorNode {
  10. public _enter (...args: any): void {
  11. EventManager.sendEvent(GameEventName.View.View_ShowView, GameView);
  12. GameManager.setGameView(GameEventName.View.View_ShowView);
  13. }
  14. protected _leave (): void {
  15. // GameManager.setGameView(GameEventName.View.View_DestroyView);
  16. }
  17. protected _enterFail (): void {
  18. }
  19. protected _enterAgain (): void {
  20. }
  21. }