Game_Gameing_Flow.ts 966 B

12345678910111213141516171819202122232425262728293031
  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 ExplainView from "../Game/View/ExplainView/ExplainView";
  6. import GameView from "../View/GameView/GameView";
  7. /**
  8. * 游戏中控制节点 - 逻辑层
  9. */
  10. export default class Game_Gameing_Flow extends BasicTreeBehaviorNode {
  11. public _enter (...args: any): void {
  12. EventManager.sendEvent(GameEventName.View.View_ShowView, ExplainView);
  13. EventManager.sendEvent(GameEventName.View.View_ShowView, GameView);
  14. GameManager.setGameView(GameEventName.View.View_ShowView);
  15. }
  16. protected _leave (): void {
  17. GameManager.setGameView(GameEventName.View.View_DestroyView);
  18. }
  19. protected _enterFail (): void {
  20. }
  21. protected _enterAgain (): void {
  22. }
  23. }