// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-09-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** 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 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); } } }