public void SetUser(int userId) { m_UserId = userId; m_Team = CacheSet.HeroTeamCache.FindKey(m_UserId); if (m_Team == null) { m_Team = new HeroTeam(); m_Team.PlayerId = m_UserId; m_Team.Team = new CacheList <int> { 0, 0, 0 }; CacheSet.HeroTeamCache.Add(m_Team); } }
public HeroTeamLogic() { m_Team = null; m_UserId = 0; }