YooAsset/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/PatchUpdater/FsmNode/FsmPatchDone.cs

22 lines
453 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
internal class FsmPatchDone : IFsmNode
{
public string Name { private set; get; } = nameof(FsmPatchDone);
void IFsmNode.OnEnter()
{
PatchEventDispatcher.SendPatchStepsChangeMsg(EPatchStates.PatchDone);
Debug.Log("补丁流程更新完毕!");
YooAsset.YooAssets.LoadSceneAsync("GameScene1");
}
void IFsmNode.OnUpdate()
{
}
void IFsmNode.OnExit()
{
}
}