54 lines
1.3 KiB
C#
54 lines
1.3 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
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
public class Stat_IdleAction : Stat_BaseAction
|
|||
|
{
|
|||
|
public Stat_IdleAction(Stat_StateManager statMgr)
|
|||
|
: base(statMgr)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public override bool Enter(Dictionary<string, object> param, bool clearDelegates = false)
|
|||
|
{
|
|||
|
base.Enter(param, clearDelegates);
|
|||
|
//string animName = m_char.GetAnimName("idle");
|
|||
|
//if (m_char.PlayAnimation(animName, true) == -1f)
|
|||
|
//{
|
|||
|
// return false;
|
|||
|
//}
|
|||
|
m_char.ResetRigidBody();
|
|||
|
m_char.SetAtkCollision(false);
|
|||
|
m_char.SetAtkCollision(true);
|
|||
|
if (m_char.IsPlayer())
|
|||
|
{
|
|||
|
((EntityMainPlayer)m_char).SetSearchNearCollider(true);
|
|||
|
}
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
public override bool Exit()
|
|||
|
{
|
|||
|
if (m_char.IsPlayer())
|
|||
|
{
|
|||
|
((EntityMainPlayer)m_char).SetSearchNearCollider(false);
|
|||
|
}
|
|||
|
return base.Exit();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|