Game_Over_Flow.ts 838 B

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