public void Reset() { this.mSelected.SetActive(false); if (!Object.op_Inequality((Object)this.mTargetSlot, (Object)null)) { return; } this.mTargetSlot.SetUnit((VersusDraftPartyUnit)null); this.mTargetSlot = (VersusDraftPartySlot)null; }
public void SelectSlot(bool selected) { if (selected) { if (Object.op_Inequality((Object)VersusDraftPartySlot.mCurrentSelected, (Object)null)) { VersusDraftPartySlot.mCurrentSelected.SelectSlot(false); } this.mSelect.SetActive(true); VersusDraftPartySlot.mCurrentSelected = this; } else { this.mSelect.SetActive(false); } }
private void Initialize() { this.mVersusDraftPartySlotList = new List <VersusDraftPartySlot>(); for (int index = 0; index < 5; ++index) { VersusDraftPartySlot versusDraftPartySlot = (VersusDraftPartySlot)UnityEngine.Object.Instantiate <VersusDraftPartySlot>((M0)this.mUnitSlotItem); ((Component)versusDraftPartySlot).get_transform().SetParent(this.mPartyTransform, false); versusDraftPartySlot.SetUp(index == 0, index >= 3); this.mVersusDraftPartySlotList.Add(versusDraftPartySlot); } this.mVersusDraftPartyUnitList = new List <VersusDraftPartyUnit>(); for (int index = 0; index < VersusDraftList.VersusDraftUnitDataListPlayer.Count; ++index) { VersusDraftPartyUnit versusDraftPartyUnit = (VersusDraftPartyUnit)UnityEngine.Object.Instantiate <VersusDraftPartyUnit>((M0)this.mUnitItem); ((Component)versusDraftPartyUnit).get_transform().SetParent(this.mUnitTransform, false); versusDraftPartyUnit.SetUp(VersusDraftList.VersusDraftUnitDataListPlayer[index]); this.mVersusDraftPartyUnitList.Add(versusDraftPartyUnit); } this.UpdateParty(true); FlowNode_GameObject.ActivateOutputLinks((Component)this, 101); }
public void OnClick(Button button) { if (Object.op_Equality((Object)VersusDraftPartySlot.CurrentSelected, (Object)null)) { return; } if (Object.op_Inequality((Object)this.mTargetSlot, (Object)null)) { VersusDraftPartySlot mTargetSlot = this.mTargetSlot; this.mTargetSlot.PartyUnit.Reset(); if (Object.op_Inequality((Object)VersusDraftPartySlot.CurrentSelected.PartyUnit, (Object)null)) { VersusDraftPartySlot.CurrentSelected.PartyUnit.Select(mTargetSlot); } } else if (Object.op_Inequality((Object)VersusDraftPartySlot.CurrentSelected.PartyUnit, (Object)null)) { VersusDraftPartySlot.CurrentSelected.PartyUnit.Reset(); } this.Select(VersusDraftPartySlot.CurrentSelected); VersusDraftPartyUnit.mVersusDraftPartyEdit.SelectNextSlot(); }
public void Select(VersusDraftPartySlot slot) { this.mSelected.SetActive(true); this.mTargetSlot = slot; this.mTargetSlot.SetUnit(this); }