Пример #1
0
 // Token: 0x06001649 RID: 5705 RVA: 0x0007C13C File Offset: 0x0007A33C
 private void Start()
 {
     GameData.Instance.PlayerState.AddEventAndFire(delegate(PlayerStateId el)
     {
         PageControllerMatch.HandleSharedViews(el, this.healthBar, this.ammoBar, this.armorBar, this.hudReticleController, this.hudStatusPanel, this.itemPickup);
         bool flag  = el == PlayerStateId.Playing;
         bool flag2 = el == PlayerStateId.Spectating;
         bool flag3 = el == PlayerStateId.Killed;
         bool flag4 = el == PlayerStateId.Paused;
         bool flag5 = el == PlayerStateId.PrepareForMatch;
         this.desktopChat.SetActive(flag || flag4 || flag5 || flag3 || flag2);
         this.eventStream.gameObject.SetActive(flag || flag4 || flag5 || flag3 || flag2);
         this.weaponScroller.SetActive(flag || flag5);
         this.quickItems.SetActive(flag || flag5);
         if (this.eventStream.gameObject.activeInHierarchy)
         {
             this.eventStream.DoAnimateDown(flag4 || flag3);
         }
         this.fps.SetActive(true);
     }, this);
     GameData.Instance.OnHUDStreamClear.AddEvent(delegate()
     {
         Singleton <DamageFeedbackHud> .Instance.ClearAll();
     }, this);
 }
Пример #2
0
 // Token: 0x06001650 RID: 5712 RVA: 0x0000F0A1 File Offset: 0x0000D2A1
 private void Start()
 {
     GameData.Instance.PlayerState.AddEventAndFire(delegate(PlayerStateId el)
     {
         PageControllerMatch.HandleSharedViews(el, this.healthBar, this.ammoBar, this.armorBar, this.hudReticleController, this.hudStatusPanel, this.itemPickup);
         bool flag  = el == PlayerStateId.Playing;
         bool flag2 = el == PlayerStateId.PrepareForMatch;
         this.hudMobileWeaponSelector.gameObject.SetActive(flag || flag2);
         this.hudMobileQuickItems.SetActive(flag || flag2);
         this.weaponFeedback.SetActive(flag || flag2);
     }, this);
     TouchInput.OnSecondaryFire.AddEvent(delegate(bool el)
     {
         this.hudMobileWeaponSelector.Show(!el);
         this.hudMobileQuickItems.SetActive(!el);
     }, this);
 }