public void Update() { if (this.AutoScroll && Object.op_Inequality((Object)this.ScrollCtrl, (Object)null) && this.ScrollCtrl.MovePos(this.AutoScrollGoal, this.ScrollSpd)) { this.AutoScroll = false; if (Object.op_Inequality((Object)this.Scroll, (Object)null)) { this.Scroll.set_inertia(true); } FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "STOP_CURRENT_SCROLL"); } if (!Object.op_Inequality((Object)this.ScrollCtrl, (Object)null) || !Object.op_Inequality((Object)this.playerInfo, (Object)null)) { return; } bool flag = false; List <RectTransform> itemList = this.ScrollCtrl.ItemList; int versusTowerFloor = MonoSingleton <GameManager> .Instance.Player.VersusTowerFloor; for (int index = 0; index < itemList.Count; ++index) { VersusTowerFloor component = (VersusTowerFloor)((Component)itemList[index]).get_gameObject().GetComponent <VersusTowerFloor>(); if (Object.op_Inequality((Object)component, (Object)null) && component.Floor == versusTowerFloor) { flag = true; component.SetPlayerObject(this.playerInfo); break; } } if (flag) { return; } this.playerInfo.SetActive(false); }
public void OnUpdateItems(int idx, GameObject obj) { if (idx < 0 || idx >= this.m_Max) { obj.SetActive(false); } else { obj.SetActive(true); VersusTowerFloor component = (VersusTowerFloor)obj.GetComponent <VersusTowerFloor>(); if (!Object.op_Inequality((Object)component, (Object)null)) { return; } component.Refresh(idx, this.m_Max - this.MARGIN); } }