// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using UnityEngine;
namespace G
{
public class Stat_RollSkillAction : Stat_SkillAction
{
private Vector3 m_jumpDir;
public Stat_RollSkillAction(Stat_StateManager statMgr)
: base(statMgr)
{
}
protected override bool WarningEnd_CB(object[] param)
{
base.WarningEnd_CB(param);
m_jumpDir = m_char.transform.forward;
m_jumpDir.y = 0f;
float d = 200f;
m_char.GetComponent().mass = 2f;
m_char.GetComponent().drag = 5f;
m_char.GetComponent().AddForce(m_jumpDir * d);
return false;
}
}
}