Exemplo n.º 1
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);
 }