Пример #1
0
 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());
 }
Пример #2
0
 public virtual void SetHolder(IPlayerStateHolder player)
 {
     m_player = player;
 }