43 lines
1.3 KiB
C#
Raw Permalink Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "Stat_IdleAction" company="Kimch"></copyright>
// <summary></summary>
// ***********************************************************************
using System.Collections.Generic;
namespace G
{
public class Stat_BornAction : Stat_BaseAction
{
public Stat_BornAction(Stat_StateManager statMgr)
: base(statMgr)
{
}
public override bool Enter(Dictionary<string, object> param, bool clearDelegates = false)
{
base.Enter(param, clearDelegates);
#pragma warning disable CS0219 // 变量“animName”已被赋值但从未使用过它的值
string animName = /*m_char.GetAnimName(*/"idle"/*)*/;
#pragma warning restore CS0219 // 变量“animName”已被赋值但从未使用过它的值
//if (m_char.PlayAnimation(animName, true) == -1f)
//{
// return false;
//}
//m_char.ShowBornAnim(FinishedAnimCallback);
return true;
}
public void FinishedAnimCallback()
{
SetCurActionState(enStat.STAT_ACTION_IDLE);
}
}
}