|
|
|
@ -128,33 +128,35 @@ public class StartChooseCardManager : Singleton<StartChooseCardManager> |
|
|
|
return; |
|
|
|
} |
|
|
|
//载入武器节点
|
|
|
|
/* for (int i = 0; i < WeaponManager.Instance.playerWeaponNodeList.childCount; i++) |
|
|
|
{ |
|
|
|
if (WeaponManager.Instance.playerWeaponNodeList.GetChild(i).childCount > 0) |
|
|
|
BagManager.Instance.isSyncWeapoNodePos = true; |
|
|
|
BagManager.Instance.bagWeaponNodeManager.SyncBagWeaponNodeToFight(); |
|
|
|
/* for (int i = 0; i < WeaponManager.Instance.playerWeaponNodeList.childCount; i++) |
|
|
|
{ |
|
|
|
if (WeaponManager.Instance.playerWeaponNodeList.GetChild(i).childCount > 0) |
|
|
|
{ |
|
|
|
Destroy(WeaponManager.Instance.playerWeaponNodeList.GetChild(i).GetChild(0).gameObject); |
|
|
|
} |
|
|
|
} |
|
|
|
int childCount = BagManager.Instance.bagWeaponNodeFather.childCount; |
|
|
|
for (int i = 0; i < childCount; i++) |
|
|
|
{ |
|
|
|
DestroyImmediate(BagManager.Instance.bagWeaponNodeFather.GetChild(0).gameObject); |
|
|
|
} |
|
|
|
for (int i = 0; i < playerWeaponNode.childCount; i++) |
|
|
|
{ |
|
|
|
if(playerWeaponNode.GetChild (i).childCount >0) |
|
|
|
{ |
|
|
|
Destroy(WeaponManager.Instance.playerWeaponNodeList.GetChild(i).GetChild(0).gameObject); |
|
|
|
} |
|
|
|
} |
|
|
|
int childCount = BagManager.Instance.bagWeaponNodeFather.childCount; |
|
|
|
for (int i = 0; i < childCount; i++) |
|
|
|
{ |
|
|
|
DestroyImmediate(BagManager.Instance.bagWeaponNodeFather.GetChild(0).gameObject); |
|
|
|
} |
|
|
|
for (int i = 0; i < playerWeaponNode.childCount; i++) |
|
|
|
{ |
|
|
|
if(playerWeaponNode.GetChild (i).childCount >0) |
|
|
|
{ |
|
|
|
//playerWeaponNode.GetChild(i).GetChild(0).SetParent(WeaponManager.Instance.playerWeaponNodeList.GetChild(i));
|
|
|
|
// WeaponManager.Instance.playerWeaponNodeList.GetChild(i).GetChild(0).localPosition = Vector3.zero;
|
|
|
|
GameObject currentWeaponNode = playerWeaponNode.GetChild(i).GetChild(0).gameObject; |
|
|
|
//playerWeaponNode.GetChild(i).GetChild(0).SetParent(WeaponManager.Instance.playerWeaponNodeList.GetChild(i));
|
|
|
|
// WeaponManager.Instance.playerWeaponNodeList.GetChild(i).GetChild(0).localPosition = Vector3.zero;
|
|
|
|
GameObject currentWeaponNode = playerWeaponNode.GetChild(i).GetChild(0).gameObject; |
|
|
|
|
|
|
|
BagManager.Instance.GetWeaponNodeToBag(playerWeaponNode.GetChild(i).GetChild(0).gameObject); |
|
|
|
BagManager.Instance.GetWeaponNodeToBag(playerWeaponNode.GetChild(i).GetChild(0).gameObject); |
|
|
|
|
|
|
|
currentWeaponNode.transform.SetParent(WeaponManager.Instance.playerWeaponNodeList.GetChild(i)); |
|
|
|
currentWeaponNode.transform.localPosition = Vector3.zero; |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
currentWeaponNode.transform.SetParent(WeaponManager.Instance.playerWeaponNodeList.GetChild(i)); |
|
|
|
currentWeaponNode.transform.localPosition = Vector3.zero; |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
//载入卡牌
|
|
|
|
//RegisterObtainedCard();
|
|
|
|
//重置地图
|
|
|
|
|