// Token: 0x06001789 RID: 6025 RVA: 0x0006663C File Offset: 0x0006483C private static void AddUser(Player inputPlayer, UserProfile userProfile) { if (LocalUserManager.UserExists(inputPlayer)) { return; } int firstAvailableId = LocalUserManager.GetFirstAvailableId(); LocalUser localUser = new LocalUser { inputPlayer = inputPlayer, id = firstAvailableId, userProfile = userProfile }; LocalUserManager.localUsersList.Add(localUser); userProfile.OnLogin(); MPEventSystem.FindByPlayer(inputPlayer).localUser = localUser; if (LocalUserManager.onUserSignIn != null) { LocalUserManager.onUserSignIn(localUser); } if (LocalUserManager.onLocalUsersUpdated != null) { LocalUserManager.onLocalUsersUpdated(); } }
// Token: 0x06001791 RID: 6033 RVA: 0x00066838 File Offset: 0x00064A38 private static Player ListenForStartSignIn() { IList <Player> players = ReInput.players.Players; for (int i = 0; i < players.Count; i++) { Player player = players[i]; if (!(player.name == "PlayerMain") && !LocalUserManager.UserExists(player) && player.GetButtonDown("Start")) { return(player); } } return(null); }