private void Update() { this.CheckUserInput(); if ((this.isEnabled || this.isEnabledTemp) && this.minimapIsCreated && this.minimapIcons != null) { for (int i = 0; i < this.minimapIcons.Length; i++) { Minimap.MinimapIcon minimapIcon = this.minimapIcons[i]; bool flag2 = minimapIcon == null; if (flag2) { Anarchy.AnarchyExtensions.RemoveAt <Minimap.MinimapIcon>(ref this.minimapIcons, i); } else { bool flag3 = !minimapIcon.UpdateUI(this.minimapOrthographicBounds, this.maximized ? ((float)this.MINIMAP_SIZE) : this.MINIMAP_CORNER_SIZE); if (flag3) { minimapIcon.Destroy(); Anarchy.AnarchyExtensions.RemoveAt <Minimap.MinimapIcon>(ref this.minimapIcons, i); } } } } }