private void MoveContentRange() { if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null)) return; ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>(); if (Object.op_Equality((Object) component, (Object) null)) return; this.get_content().set_anchoredPosition(component.SetRangePos(this.get_content().get_anchoredPosition())); }
private bool CheckSetScrollPos() { if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null)) return false; ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>(); if (Object.op_Equality((Object) component, (Object) null)) return false; return component.CheckRangePos((float) this.get_content().get_anchoredPosition().x); }
private float GetNearIconPos() { float num = (float) this.GetCurrent() * this.ItemScale + this.Offset; if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null)) return num; ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>(); if (Object.op_Equality((Object) component, (Object) null)) return num; return component.GetNearIconPos((float) this.get_content().get_anchoredPosition().x); }