1234567891011121314151617181920212223242526272829303132 |
- import BasicTreeBehaviorNode from "../../Engine/Basic/BasicTreeBehaviorNode";
- import EventManager from "../../Engine/Event/EventManager";
- import Tool from "../../Engine/Tool/Tool";
- import GameEventName from "../Event/GameEventName";
- import ExplainView from "../Game/View/ExplainView/ExplainView";
- import InitLoadView from "../View/InitLoadView/InitLoadView";
- /**
- * 启动控制节点 - 逻辑层
- */
- export default class Game_InitLoad_Flow extends BasicTreeBehaviorNode {
- public _enter (...args: any): void {
- EventManager.sendEvent(GameEventName.View.View_DestroyView, null);
- EventManager.sendEvent(GameEventName.View.View_ShowView, InitLoadView);
- }
- protected _leave (): void {
- Tool.log("正式进入游戏");
- EventManager.sendEvent(GameEventName.View.View_ShowView, ExplainView);
- // EventManager.sendEvent(GameEventName.View.View_DestroyView, InitLoadView);
- }
-
- protected _enterFail (): void {
-
- }
- protected _enterAgain (): void {
-
- }
- }
|