public void SetUnit(VersusDraftPartyUnit partyUnit)
 {
     if (Object.op_Inequality((Object)this.mDataSource, (Object)null))
     {
         this.mDataSource.Clear();
     }
     if (Object.op_Inequality((Object)partyUnit, (Object)null))
     {
         this.mDataSource.Add(typeof(UnitData), (object)partyUnit.UnitData);
     }
     this.mPartyUnit = partyUnit;
     GameParameter.UpdateAll(((Component)this).get_gameObject());
     VersusDraftPartySlot.mVersusDraftPartyEdit.UpdateParty(this.mIsLeader);
 }
Example #2
0
 private void Timeout()
 {
     for (int index = 0; index < 3; ++index)
     {
         if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.mVersusDraftPartySlotList[index].PartyUnit, (UnityEngine.Object)null))
         {
             VersusDraftPartyUnit versusDraftPartyUnit = this.mVersusDraftPartyUnitList.Find((Predicate <VersusDraftPartyUnit>)(vdpUnit => !vdpUnit.IsSetSlot));
             if (!UnityEngine.Object.op_Equality((UnityEngine.Object)versusDraftPartyUnit, (UnityEngine.Object)null))
             {
                 versusDraftPartyUnit.Select(this.mVersusDraftPartySlotList[index]);
             }
         }
     }
     this.ToMap();
 }
Example #3
0
 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);
 }