public void UserSkill(UserInfo user, AbstractUserStateLogic logic, int skillId)
        {
            UserSkillCommand cmd = m_UserSkillCommandPool.Alloc();

            if (null != cmd)
            {
                cmd.SetContext(user, logic);
                cmd.Init(skillId);
                user.GetAiStateInfo().CommandQueue.Enqueue(cmd);
            }
        }
Esempio n. 2
0
 public void SetContext(UserInfo user, AbstractUserStateLogic logic)
 {
     m_User  = user;
     m_Logic = logic;
 }