Exemple #1
0
 public void DropItem(AllItems itemEnum, Vector3 position)
 {
     foreach (GameObject item in items)
     {
         if (itemEnum.ToString() == item.gameObject.name.ToString())
         {
             Instantiate(item, position, Quaternion.identity);
         }
     }
 }