void Generate() { _loot = new ShipComponent[Random.Range(_minItemCount, _maxItemCount)]; for (int i = 0; i < _loot.Length; i++) { _loot[i] = ItemDB.GetRandom(_topRarity); } WorldUIManager.getInstance.CreateContactItem("Loot", "Contains many items", this.transform.position); }