31 lines
536 B
C#
31 lines
536 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using BITKit;
|
||
|
using TinyScript;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITFALL.LooSystem
|
||
|
{
|
||
|
public class WorldLootSpawner : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField] private bool spawnOnStart;
|
||
|
[SerializeField] private LootDrop lootDrop;
|
||
|
[SerializeField] private int count;
|
||
|
[SerializeField] private int range;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
if (spawnOnStart)
|
||
|
{
|
||
|
Execute();
|
||
|
}
|
||
|
}
|
||
|
public void Execute()
|
||
|
{
|
||
|
lootDrop.SpawnDrop(transform,count,range);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|