public void SetUser(int userId) { m_UserId = userId; m_Package = CacheSet.playerPackageCache.FindKey(m_UserId.ToString(), userId); if (m_Package == null) { m_Package = new PlayerPackage(); m_Package.UserId = m_UserId; CacheSet.playerPackageCache.Add(m_Package); } }
public PlayerPackageLogic() { m_UserId = 0; m_Package = null; }