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;
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 private void OnEnable()
 {
     this.SetVisibility(LegionfallData.HasAccess());
     this.m_pinchZoomManager.ZoomFactorChanged   += new Action <bool>(this.OnZoomChanged);
     Main.instance.ContributionInfoChangedAction += new Action(this.HandleContributionInfoChanged);
 }
Esempio n. 4
0
 private void HandleContributionInfoChanged()
 {
     this.SetVisibility(LegionfallData.HasAccess());
 }