void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Beispiel #2
0
 void DropItems(List <ItemData> dropItems)
 {
     foreach (ItemData dropItem in dropItems)
     {
         gameItemDrop.DropItemIntoWorld(dropItem, dropTransform.position, ItemPrefabInitilizer.GetPrefabToInstantiate(dropItem), IsDropSingleAmount);
     }
 }
Beispiel #3
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
 void Awake()
 {
     if (prefabInit == null)
     {
         prefabInit = this.GetComponent <ItemPrefabInitilizer>();
     }
 }
 void Awake()
 {
     if (prefabInit == null)
     {
         prefabInit = this.GetComponent<ItemPrefabInitilizer>();
     }
 }