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;
        }
示例#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));
        }
示例#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);
 }
示例#4
0
 private void HandleContributionInfoChanged()
 {
     this.SetVisibility(LegionfallData.HasAccess());
 }