예제 #1
0
 void DropItemOnDead()
 {
     if (itemStore)
     {
         Debug.Log(itemStore.transform.childCount);
         for (int i = itemStore.transform.childCount - 1; i >= 0; i--)
         {
             pickupManager.DropItem(itemStore.transform.GetChild(i).gameObject);
         }
     }
     if (itemInHand)
     {
         Debug.Log("exe");
         pickupManager.DropItem(itemInHand.gameObject);
     }
 }