| | 1 | | using DCL; |
| | 2 | | using DCL.Browser; |
| | 3 | | using DCL.Helpers; |
| | 4 | | using DCL.MyAccount; |
| | 5 | | using SocialFeaturesAnalytics; |
| | 6 | |
|
| | 7 | | namespace MainScripts.DCL.Controllers.HUD.Profile |
| | 8 | | { |
| | 9 | | public class ProfileHUDControllerDesktop : ProfileHUDController |
| | 10 | | { |
| | 11 | | private readonly ProfileHUDViewDesktop_V2 viewDesktop; |
| | 12 | |
|
| | 13 | | public ProfileHUDControllerDesktop(ProfileHUDViewDesktop_V2 view, IUserProfileBridge userProfileBridge, |
| | 14 | | ISocialAnalytics socialAnalytics, DataStore dataStore, |
| | 15 | | MyAccountCardController myAccountCardController, IBrowserBridge browserBridge) |
| 0 | 16 | | : base(view, userProfileBridge, socialAnalytics, dataStore, myAccountCardController, browserBridge) |
| | 17 | | { |
| 0 | 18 | | viewDesktop = view; |
| 0 | 19 | | viewDesktop.getButtonSignUp.onClick.RemoveAllListeners(); |
| 0 | 20 | | viewDesktop.getButtonSignUp.onClick.AddListener(OnExitButtonClick); // When you exit the renderer, you will |
| 0 | 21 | | viewDesktop.exitButtons.ForEach(e => e.onClick.AddListener(OnExitButtonClick)); |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | private void OnExitButtonClick() |
| | 25 | | { |
| 0 | 26 | | Utils.QuitApplication(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | public override void Dispose() |
| | 30 | | { |
| 0 | 31 | | base.Dispose(); |
| 0 | 32 | | viewDesktop.getButtonSignUp.onClick.RemoveAllListeners(); // When you exit the renderer, you will see the la |
| 0 | 33 | | viewDesktop.exitButtons.ForEach(e => e.onClick.RemoveAllListeners()); |
| 0 | 34 | | } |
| | 35 | | } |
| | 36 | | } |
| | 37 | |
|