| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 Jiang Yin. All rights reserved.
- // Homepage: https://gameframework.cn/
- // Feedback: mailto:ellan@gameframework.cn
- //------------------------------------------------------------
- using GameFramework;
- using GameFramework.Event;
- using GameFramework.Resource;
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityGameFramework.Runtime;
- using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
- namespace GFMain
- {
- public class ProcedurePreload : ProcedureBase
- {
- public override bool UseNativeDialog
- {
- get
- {
- return true;
- }
- }
- public static readonly string[] DataTableNames = new string[]
- {
- // "实体类格式参考表",
- //"EquipDataTable"
- "InterphonePassages"
- };
- private bool isCompleted = false;
- protected override void OnEnter(ProcedureOwner procedureOwner)
- {
- base.OnEnter(procedureOwner);
- isCompleted = true;
- }
- protected override void OnLeave(ProcedureOwner procedureOwner, bool isShutdown)
- {
- base.OnLeave(procedureOwner, isShutdown);
- }
- protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
- {
- base.OnUpdate(procedureOwner, elapseSeconds, realElapseSeconds);
- if (isCompleted)
- ChangeState<ProcedureBusiness>(procedureOwner);
- }
- }
- }
|