YooAsset/Assets/Samples~/BasicSample/Script/Runtime/PatchUpdater/FsmNode/FsmPatchDone.cs

22 lines
454 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("Scene/Game1");
}
void IFsmNode.OnUpdate()
{
}
void IFsmNode.OnExit()
{
}
}