示例#1
0
 void SetLoot(ILootable l)
 {
     currentlyLooting = l;
     foreach (Item i in currentlyLooting.GetLoot())
     {
         LootItemObject temp = Instantiate(prefab, transform.position, Quaternion.identity, transform);
         temp.SetItem(i);
     }
 }
示例#2
0
 private void Start()
 {
     instance = this;
     prefab   = Resources.Load <LootItemObject>("Prefabs/LootItemObject");
 }