Files
brickcraft/Assets/Scripts/BlockAdderTest.cs
tetreum aed8af5f2c + Bricks can now have their own material
+ Add some standard brick colors as materials
2020-12-27 17:55:54 +01:00

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,
});
}
}