private void OnUpdate()
 {
     this.CursorCanvasGroup.set_alpha(Smooth.Damp(this.CursorCanvasGroup.get_alpha(), !this.EnabledInput || this.FocusLevel != Singleton <Input> .Instance.FocusLevel || !Object.op_Inequality((Object)this.SelectedOption, (Object)null) ? 0.0f : 1f, ref this._alphaVelocity, this._alphaAccelerationTime));
     if (Object.op_Inequality((Object)this.SelectedOption, (Object)null))
     {
         CursorFrame.Set(((Graphic)this._cursorFrame).get_rectTransform(), (RectTransform)((Component)this.SelectedOption).GetComponent <RectTransform>(), ref this._velocity, new float?(), new float?(this._followAccelerationTime));
     }
     if (Object.op_Equality((Object)this.CurrentOption, (Object)null))
     {
         ((Component)this._selectedCursorFrame).get_gameObject().SetActive(false);
     }
     else
     {
         ((Component)this._selectedCursorFrame).get_gameObject().SetActive(true);
         CursorFrame.Set(((Graphic)this._selectedCursorFrame).get_rectTransform(), (RectTransform)((Component)this.CurrentOption).GetComponent <RectTransform>(), ref this._selectedvelocity, new float?(), new float?(this._followAccelerationTime));
     }
 }