public void Logout() {//1.3.3 NetworkManager.OnLoginEvent -= GetFriends; GameEvent.OnMapState -= PlaceFriendsPositionsOnMap; MenuManager.OnMenuLeadboard -= GetLeadboardOnLevel; NetworkManager.OnLogoutEvent -= Logout; FacebookManager.Friends.Clear(); friendsManager.Logout(); }
public void Logout() //1.3.3 { NetworkManager.OnLoginEvent -= GetFriends; LevelManager.OnMapState -= PlaceFriendsPositionsOnMap; LevelManager.OnMenuPlay -= GetLeadboardOnLevel; LevelManager.OnMenuComplete -= GetLeadboardOnLevel; NetworkManager.OnLogoutEvent -= Logout; FacebookManager.Friends.Clear(); friendsManager.Logout(); }