44 lines
1.5 KiB
C#
44 lines
1.5 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_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<string, object> 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<UnityEngine.Rigidbody>().mass = 6f;
|
|||
|
m_char.GetComponent<UnityEngine.Rigidbody>().drag = 15f;
|
|||
|
//m_char.GetComponent<UnityEngine.Rigidbody>().AddForce(m_char.transform.forward * m_curSkillConfig.m_Aniparam2);
|
|||
|
m_statMgr.RemoveTimer(m_time);
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|