43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
![]() |
// ***********************************************************************
|
|||
|
// 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|