private void OnEnable() { this.SetVisibility(LegionfallData.HasAccess()); PinchZoomContentManager pinchZoomManager = this.m_pinchZoomManager; pinchZoomManager.ZoomFactorChanged = (Action <bool>)Delegate.Combine(pinchZoomManager.ZoomFactorChanged, new Action <bool>(this.OnZoomChanged)); Singleton <GarrisonWrapper> .Instance.ContributionInfoChangedAction += this.HandleContributionInfoChanged; }
private void OnEnable() { this.SetVisibility(LegionfallData.HasAccess()); PinchZoomContentManager pinchZoomManager = this.m_pinchZoomManager; pinchZoomManager.ZoomFactorChanged = (Action <bool>)Delegate.Combine(pinchZoomManager.ZoomFactorChanged, new Action <bool>(this.OnZoomChanged)); Main instance = Main.instance; instance.ContributionInfoChangedAction = (Action)Delegate.Combine(instance.ContributionInfoChangedAction, new Action(this.HandleContributionInfoChanged)); }
private void OnEnable() { this.SetVisibility(LegionfallData.HasAccess()); this.m_pinchZoomManager.ZoomFactorChanged += new Action <bool>(this.OnZoomChanged); Main.instance.ContributionInfoChangedAction += new Action(this.HandleContributionInfoChanged); }
private void HandleContributionInfoChanged() { this.SetVisibility(LegionfallData.HasAccess()); }