using System; using System.Collections; using System.Collections.Generic; using DarkTonic.MasterAudio; using TMPro; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; // Token: 0x020000A6 RID: 166 public class Forfeits : MonoBehaviour { // Token: 0x06000F5E RID: 3934 RVA: 0x00129CB0 File Offset: 0x00127EB0 private void Start() { this.anim.enabled = false; this.exiles = Records.x.exiles; this.exilesPurseState = Records.x.exilesPurseState; if (!Records.x.windows && this.scrollRect1) { this.scrollRect1.scrollSensitivity = 9f; } } // Token: 0x06000F5F RID: 3935 RVA: 0x00129D14 File Offset: 0x00127F14 public void DoUpdate() { if (Links.x.joy && this.on) { RectTransform viewport = this.scrollRect1.viewport; for (int i = 0; i < this.usedButtons.Count; i++) { if (this.usedButtons[i]) { Vector2 vector = RectTransformUtility.WorldToScreenPoint(Links.x.hudCanvas.worldCamera, this.usedButtons[i].gameObject.transform.position); bool flag = RectTransformUtility.RectangleContainsScreenPoint(viewport, vector, Links.x.hudCanvas.worldCamera); this.usedButtons[i].GetComponent