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

44 lines
1.5 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_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;
}
}
}