// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using System.Collections.Generic;
namespace G
{
public class Stat_SpurtSkillAction : Stat_SkillAction
{
#pragma warning disable CS0649 // 从未对字段“Stat_SpurtSkillAction.m_time”赋值,字段将一直保持其默认值 null
private Timer m_time;
#pragma warning restore CS0649 // 从未对字段“Stat_SpurtSkillAction.m_time”赋值,字段将一直保持其默认值 null
public Stat_SpurtSkillAction(Stat_StateManager statMgr)
: base(statMgr)
{
}
public override bool Enter(Dictionary param, bool clearDelegates = false)
{
bool flag = false;
flag = base.Enter(param, clearDelegates);
//m_time = m_statMgr.AddTimer(m_curSkillConfig.m_Aniparam1, Thrust_CB);
return flag;
}
private bool Thrust_CB(object[] param)
{
m_char.GetComponent().mass = 6f;
m_char.GetComponent().drag = 15f;
//m_char.GetComponent().AddForce(m_char.transform.forward * m_curSkillConfig.m_Aniparam2);
m_statMgr.RemoveTimer(m_time);
return true;
}
}
}