public StateComponent(int iMagic, int iHealth, float fMoveSpeed) { m_iMagic = iMagic; m_iHealth = iHealth; m_fMoveSpeed = fMoveSpeed; m_stateHolder = new PlayerStateHolder(); m_stateHolder.SetState(new PlayerNormal()); }
public virtual void SetHolder(IPlayerStateHolder player) { m_player = player; }