shaoxiadiablo/Assets/AGame/Scripts/Game/Stat/Stat_BornAction.cs
2025-05-18 01:04:31 +08:00

43 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ***********************************************************************
// 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);
}
}
}