Files
iFactory.Cutting.Unity/Assets/Plugins/Loot Table/Script/Spawner.cs

20 lines
407 B
C#
Raw Normal View History

2024-06-03 10:11:43 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TinyScript;
public class Spawner : MonoBehaviour
{
public LootDrop Loot;
public int RandomDropCount = 1;
public float DropRange = .5f;
private void Update()
{
if (Input.GetKeyDown(KeyCode.E))
{
Loot.SpawnDrop(this.transform, RandomDropCount, DropRange);
}
}
}