// Token: 0x060013C3 RID: 5059 RVA: 0x00071810 File Offset: 0x0006FA10
 private void Update()
 {
     if (InputManager.SkipFrame == Time.frameCount)
     {
         return;
     }
     if (GameData.Instance.HUDChatIsTyping)
     {
         return;
     }
     foreach (UserInputMap userInputMap in this._keyMapping.Values)
     {
         if (userInputMap != null && userInputMap.Channel != null)
         {
             userInputMap.Channel.Listen();
             if (userInputMap.IsEventSender && userInputMap.Channel.IsChanged)
             {
                 global::EventHandler.Global.Fire(new GlobalEvents.InputChanged(userInputMap.Slot, userInputMap.Channel.Value));
             }
         }
     }
     if (this.RawValue(GameInputKey.Fullscreen) != 0f && GUITools.SaveClickIn(0.2f))
     {
         GUITools.Clicked();
         ScreenResolutionManager.IsFullScreen = !Screen.fullScreen;
     }
 }
Example #2
0
 // Token: 0x06001F93 RID: 8083 RVA: 0x0009766C File Offset: 0x0009586C
 private void OnNextWeapon(GlobalEvents.InputChanged ev)
 {
     if ((this._currentSlot == null || (ev.IsDown && this._currentSlot.InputHandler.CanChangeWeapon())) && GUITools.SaveClickIn(0.2f))
     {
         GUITools.Clicked();
         this.PrevWeapon();
     }
     else if (this._currentSlot != null && ev.IsDown)
     {
         this._currentSlot.InputHandler.OnNextWeapon();
     }
 }
 // Token: 0x06000BC5 RID: 3013 RVA: 0x0004D328 File Offset: 0x0004B528
 private void BuyButton(Rect position, BundleUnityView bundleUnityView)
 {
     if (GUI.Button(new Rect(81f, 51f, position.width - 110f, 20f), new GUIContent(bundleUnityView.CurrencySymbol + bundleUnityView.Price, "Buy the " + bundleUnityView.BundleView.Name + " pack."), BlueStonez.buttongold_medium))
     {
         GUITools.Clicked();
         if (ApplicationDataManager.Channel == ChannelType.Steam)
         {
             Singleton <BundleManager> .Instance.BuyBundle(bundleUnityView);
         }
         else
         {
             PopupSystem.ClearAll();
             PopupSystem.ShowMessage("Purchase Failed", "Sorry, only Steam players can purchase credit bundles.", PopupSystem.AlertType.OK);
         }
     }
 }