mirror of
https://github.com/tetreum/brickcraft.git
synced 2026-02-09 11:38:59 -06:00
15 lines
279 B
C#
15 lines
279 B
C#
using Brickcraft;
|
|
using UnityEngine;
|
|
|
|
public class BlockAdderTest : MonoBehaviour
|
|
{
|
|
public int item;
|
|
|
|
private void OnTriggerEnter(Collider other) {
|
|
Player.Instance.addItem(new UserItem() {
|
|
id = item,
|
|
quantity = 100,
|
|
});
|
|
}
|
|
}
|