Files
brickcraft/Assets/Scripts/Brick.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

23 lines
424 B
C#

using UnityEngine;
namespace Brickcraft
{
public class Brick {
public string id;
public int itemId;
public GameObject gameObject;
public Item item {
get {
return Server.items[itemId];
}
}
public BrickModel model {
get {
return Server.brickModels[item.brickModelId];
}
}
}
}