//보물상자 드랍(정보 넘기기) rate = 상자등급 public void InstanTreasuerBox(Transform pos, ItemPrivateNum [] num) { GameObject[] temp = new GameObject[num.Length]; for (int i = 0; i < num.Length; i++) { temp[i] = GetItemGam[(int)num[i]]; } GetBox = Instantiate(GetBoxGam[(int)BOXTYPE.TREASUREBOX], pos.position, Quaternion.identity).GetComponent <Treasure_Box>(); GetBox.GetInfo(temp, GetItemAniGam, num.Length); }
//보물상자 드랍(정보 넘기기) rate = 상자등급 public void InstanTreasuerBox(Transform pos, int rate) { GameObject[] temp = { GetItemGam[(int)MELEEWEAPON.TOOTH_PICK], GetItemGam[(int)MELEEWEAPON.CLUB] }; GetBox = Instantiate(GetBoxGam, pos.position, Quaternion.identity).GetComponent <Treasure_Box>(); GetBox.GetInfo(temp, GetItemAniGam, rate); }