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

22 lines
454 B
C#
Raw Normal View History

2022-07-18 14:56:12 +08:00
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()
{
}
}