zip压缩加载测试
This commit is contained in:
41
Assets/Main/Script/Runtime/kkController/fsm/KKRunState.cs
Normal file
41
Assets/Main/Script/Runtime/kkController/fsm/KKRunState.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Stary.Evo;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Main
|
||||
{
|
||||
/// <summary>
|
||||
/// 待机状态
|
||||
/// </summary>
|
||||
public class KKRunState : AbstractFSMIState
|
||||
{
|
||||
private string aniName = "anim_ip_explain_talk_loop";
|
||||
|
||||
|
||||
|
||||
public KKRunState(IFsmSystem system) : base(system)
|
||||
{
|
||||
}
|
||||
|
||||
public override UniTask OnEnterAsync()
|
||||
{
|
||||
KKFsmSystem kkFsmSystem = FsmSystem as KKFsmSystem;
|
||||
if (kkFsmSystem.animator != null)
|
||||
{
|
||||
kkFsmSystem.animator.CrossFade(aniName, 0.2f,0, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("UnityEvo:KKFsmSystem: animator is null");
|
||||
}
|
||||
return UniTask.CompletedTask;
|
||||
}
|
||||
public override UniTask OnExitAsync()
|
||||
{
|
||||
return UniTask.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user