Ejemplo n.º 1
0
 private void CreateLoot()
 {
     if (lootTable != null)
     {
         PowerUp power = lootTable.CreateLoot();
         if (power != null)
         {
             Instantiate(power.gameObject, transform.position, Quaternion.identity);
         }
     }
 }