// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
using System.Collections.Generic;
namespace G
{
///
///
///
public class Stat_IdleAction : Stat_BaseAction
{
public Stat_IdleAction(Stat_StateManager statMgr)
: base(statMgr)
{
}
public override bool Enter(Dictionary 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();
}
}
}