// Token: 0x060022C7 RID: 8903 RVA: 0x000A4350 File Offset: 0x000A2550 protected void LateUpdate() { bool flag = this.cursorOpenerCount > 0 && base.currentInputModule && base.currentInputModule.input; this.SetCursorIndicatorEnabled(flag); MPInputModule mpinputModule = base.currentInputModule as MPInputModule; if (flag) { CursorIndicatorController.CursorSet cursorSet = this.cursorIndicatorController.noneCursorSet; MPEventSystem.InputSource currentInputSource = this.currentInputSource; if (currentInputSource != MPEventSystem.InputSource.Keyboard) { if (currentInputSource == MPEventSystem.InputSource.Gamepad) { cursorSet = this.cursorIndicatorController.gamepadCursorSet; } } else { cursorSet = this.cursorIndicatorController.mouseCursorSet; } this.cursorIndicatorController.SetCursor(cursorSet, this.isHovering ? CursorIndicatorController.CursorImage.Hover : CursorIndicatorController.CursorImage.Pointer, this.GetColor()); this.cursorIndicatorController.SetPosition(mpinputModule.input.mousePosition); } }
// Token: 0x06002287 RID: 8839 RVA: 0x000957C8 File Offset: 0x000939C8 public void SetCursor(CursorIndicatorController.CursorSet cursorSet, CursorIndicatorController.CursorImage cursorImage, Color color) { GameObject gameObject = cursorSet.GetGameObject(cursorImage); bool flag = color != this.cachedIndicatorColor; if (gameObject != this.currentChildIndicator) { if (this.currentChildIndicator) { this.currentChildIndicator.SetActive(false); } this.currentChildIndicator = gameObject; if (this.currentChildIndicator) { this.currentChildIndicator.SetActive(true); } flag = true; } if (flag) { this.cachedIndicatorColor = color; this.ApplyIndicatorColor(); } }