public void CreateChest() { GameObject G = Instantiate(S_A_GameRoom.GetInstance().GetRandomTemplate(), _Point_IN.transform.position, _Point_IN.transform.rotation); _Chest = G.GetComponent <S_Chest>(); _Chest.FreezeBody(); _Chest.RegContainer(this); S_A_GameRoom.GetInstance().AddChest(_Chest); Chest_Conv Buf = new Chest_Conv(_Last_Chest, _Chest); _List_Chest.Add(Buf); _Last_Chest = Buf; }
public override void EventGrab() { _TAGET_Chest.gameObject.transform.SetParent(_Cont_Chest.transform); _TAGET_Chest.FreezeBody(); _Is_Capture = true; }